[PATCH] D57342: gn build: Fix `lld-link: unknown flag: -fuse-ld=lld` warnings on Windows

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 28 10:58:55 PST 2019


thakis created this revision.
thakis added a reviewer: pcc.

Fixes a minor regression from r351248.


https://reviews.llvm.org/D57342

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
@@ -122,7 +122,8 @@
     }
   }
 
-  if (use_lld) {
+  # On Windows, the linker is not invoked through the compiler driver.
+  if (use_lld && host_os != "win") {
     ldflags += [ "-fuse-ld=lld" ]
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57342.183911.patch
Type: text/x-patch
Size: 375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/e0d788bb/attachment.bin>


More information about the llvm-commits mailing list