-
Notifications
You must be signed in to change notification settings - Fork 254
Add preliminary Windows arm64 support #389
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -301,6 +301,18 @@ config("compiler") { | |
| "_LARGEFILE64_SOURCE", | ||
| ] | ||
| } | ||
| } else if (is_win) { | ||
| if (is_clang) { | ||
| if (current_cpu == "x86") { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does x86 actually work?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No clue; all the support has been there since before we forked. My guess based on this experience and also reviving the stale Windows clang code is that in terms of just our build system, it's probably more or less working, and the problems would be all the expected issues with Dart. We could theoretically rip it all out, but I don't want to mix that with this PR. (And since we have an open-even-if-unlikely-to-be-addressed issue requesting x86 Windows support, I'm not sure we actually want to go out of our way to do that.) |
||
| cflags += [ "-m32" ] | ||
| } else if (current_cpu == "x64") { | ||
| cflags += [ "-m64" ] | ||
| } else if (current_cpu == "arm64") { | ||
| cflags += [ "--target=arm64-windows" ] | ||
| } else { | ||
| assert(false, "unknown current_cpu " + current_cpu) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| if (operator_new_alignment != "default" && is_clang) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really surprised just
__aarch64__for Clang on Windows.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we still support non-clang local builds, at least in theory.