summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/darwin-ld-lto.c
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-26 23:23:08 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-26 23:23:08 +0000
commit5ee58d38606cc348dc11c2df662123aefb0a67e9 (patch)
treefc4a436c83571a557509080df471c14a78e2fe54 /clang/test/Driver/darwin-ld-lto.c
parent5b2b39065ca6369280f4f07d3dc42f0785721911 (diff)
downloadbcm5719-llvm-5ee58d38606cc348dc11c2df662123aefb0a67e9.tar.gz
bcm5719-llvm-5ee58d38606cc348dc11c2df662123aefb0a67e9.zip
Unconditionally pass `-lto_library` to the linker on Darwin
We're only doing it with -flto currently, however it never "hurt" to pass it, and users that are linking without -flto can get in trouble if one of the dependency (a static library for instance) contains bitcode. Differential Revision: https://reviews.llvm.org/D25932 llvm-svn: 285254
Diffstat (limited to 'clang/test/Driver/darwin-ld-lto.c')
-rw-r--r--clang/test/Driver/darwin-ld-lto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/darwin-ld-lto.c b/clang/test/Driver/darwin-ld-lto.c
index 06152acf86b..dcdeebb4400 100644
--- a/clang/test/Driver/darwin-ld-lto.c
+++ b/clang/test/Driver/darwin-ld-lto.c
@@ -6,20 +6,20 @@
// RUN: mkdir -p %T/lib
// RUN: touch %T/lib/libLTO.dylib
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
-// RUN: -ccc-install-dir %T/bin -mlinker-version=133 -flto 2> %t.log
+// RUN: -ccc-install-dir %T/bin -mlinker-version=133 2> %t.log
// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH %s -input-file %t.log
//
// LINK_LTOLIB_PATH: {{ld(.exe)?"}}
// LINK_LTOLIB_PATH: "-lto_library"
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
-// RUN: -ccc-install-dir %S/dummytestdir -mlinker-version=133 -flto 2> %t.log
+// RUN: -ccc-install-dir %S/dummytestdir -mlinker-version=133 2> %t.log
// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH_WRN %s -input-file %t.log
//
// LINK_LTOLIB_PATH_WRN: warning: libLTO.dylib relative to clang installed dir not found; using 'ld' default search path instead
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
-// RUN: -ccc-install-dir %S/dummytestdir -mlinker-version=133 -Wno-liblto -flto 2> %t.log
+// RUN: -ccc-install-dir %S/dummytestdir -mlinker-version=133 -Wno-liblto 2> %t.log
// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH_NOWRN %s -input-file %t.log
//
// LINK_LTOLIB_PATH_NOWRN-NOT: warning: libLTO.dylib relative to clang installed dir not found; using 'ld' default search path instead
OpenPOWER on IntegriCloud