[PATCH] D121871: [gn build] Use lld-link's new /winsysroot: flag
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 10:43:54 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG312ec6f1569e: [gn build] Use lld-link's new /winsysroot: flag (authored by thakis).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121871/new/
https://reviews.llvm.org/D121871
Files:
llvm/utils/gn/build/BUILD.gn
Index: llvm/utils/gn/build/BUILD.gn
===================================================================
--- llvm/utils/gn/build/BUILD.gn
+++ llvm/utils/gn/build/BUILD.gn
@@ -297,6 +297,12 @@
if (current_os == "win") {
assert(is_clang, "sysroot only works with clang-cl as host compiler")
cflags += [ "/winsysroot" + rebase_path(sysroot, root_build_dir) ]
+ if (use_lld) {
+ ldflags += [ "/winsysroot:" + rebase_path(sysroot, root_build_dir) ]
+
+ # FIXME: Remove once PR54409 is fixed.
+ ldflags += [ "/machine:x64" ]
+ }
} else if (current_os != "ios" && current_os != "mac" &&
current_os != "android") {
cflags += [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121871.417026.patch
Type: text/x-patch
Size: 750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220321/4cb94635/attachment.bin>
More information about the llvm-commits
mailing list