]> granicus.if.org Git - clang/commitdiff
clang-cl: expose the -fuse-ld option
authorHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:01:00 +0000 (21:01 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:01:00 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283256 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td
test/Driver/cl-link.c

index d3de24b6605fd6914f2fcad5fd95f54b5086e392..2ff4739b94f5d387cbe5c397e425155536f30823 100644 (file)
@@ -2155,7 +2155,7 @@ defm : BooleanFFlag<"keep-inline-functions">, Group<clang_ignored_gcc_optimizati
 
 def fprofile_dir : Joined<["-"], "fprofile-dir=">, Group<f_Group>;
 
-def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group<f_Group>;
+def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group<f_Group>, Flags<[CoreOption]>;
 
 defm align_functions : BooleanFFlag<"align-functions">, Group<clang_ignored_gcc_optimization_f_Group>;
 def falign_functions_EQ : Joined<["-"], "falign-functions=">, Group<clang_ignored_gcc_optimization_f_Group>;
index 026c43383cb909073bfced26a179cd5883328ca3..b195676250e803c0ccb1a8de2cbecd1582247494 100644 (file)
@@ -51,3 +51,6 @@
 // NONEXISTENT: link.exe
 // NONEXISTENT: "/libpath:somepath"
 // NONEXISTENT: nonexistent
+
+// RUN: %clang_cl /Tc%s -fuse-ld=lld -### 2>&1 | FileCheck --check-prefix=USE_LLD %s
+// USE_LLD: lld-link.exe