diff options
author | Vedant Kumar <vsk@apple.com> | 2016-08-30 20:36:50 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-08-30 20:36:50 +0000 |
commit | b7df1e21481cfb8e65f85da366fac23adf0301de (patch) | |
tree | a0877b08b400123d887157900c1df95a8af0cd9a | |
parent | c56f8ceda894f07de996f6faf32a574f6d9d81be (diff) | |
download | bcm5719-llvm-b7df1e21481cfb8e65f85da366fac23adf0301de.tar.gz bcm5719-llvm-b7df1e21481cfb8e65f85da366fac23adf0301de.zip |
[test] Pass a fake libLTO.dylib to a driver test which depends on it
This makes it possible to run 'check-clang' on Darwin without building
libLTO.dylib. See r280142 for more context.
llvm-svn: 280150
-rw-r--r-- | clang/test/Driver/darwin-ld-lto.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Driver/darwin-ld-lto.c b/clang/test/Driver/darwin-ld-lto.c index 23e006a0185..06152acf86b 100644 --- a/clang/test/Driver/darwin-ld-lto.c +++ b/clang/test/Driver/darwin-ld-lto.c @@ -2,24 +2,24 @@ // Check that ld gets "-lto_library" and warnings about libLTO.dylib path. +// RUN: mkdir -p %T/bin +// RUN: mkdir -p %T/lib +// RUN: touch %T/lib/libLTO.dylib // RUN: %clang -target x86_64-apple-darwin10 -### %s \ -// RUN: -mlinker-version=133 -flto 2> %t.log -// RUN: cat %t.log -// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH %s < %t.log +// RUN: -ccc-install-dir %T/bin -mlinker-version=133 -flto 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: cat %t.log -// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH_WRN %s < %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: cat %t.log -// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH_NOWRN %s < %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 |