[PATCH] Allow clang-cl to automatically use lld instead of forcing the MSVC linker

Zachary Turner zturner at google.com
Mon Dec 1 09:38:39 PST 2014


================
Comment at: lib/Driver/Tools.cpp:7987
@@ +7986,3 @@
+    ld_value = A->getValue();
+    if (StringRef(ld_value).equals_lower("lld"))
+      ld_value = "lld-link";
----------------
ruiu wrote:
> Why don't you just pass "lld-link" (not "lld") to -fuse-ld option?
Because there should be a consistent syntax for specifying "link with lld" regardless of which platform you're on.  I don't want it to be -fuse-ld=lld on Linux, and -fuse-ld=lld-link on Windows, for example.

http://reviews.llvm.org/D6428






More information about the cfe-commits mailing list