diff options
| author | Dan Albert <danalbert@google.com> | 2017-08-15 21:31:17 +0000 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2017-08-15 21:31:17 +0000 |
| commit | fe9f1e60c517e71bd819cab9e90b110457ca42b6 (patch) | |
| tree | 883390223c3abf3d7220a8f094fd921265fb831a /clang/test/Driver/lto.c | |
| parent | bb93483c119b92c1ec2b7a58505e21b9dce6a333 (diff) | |
| download | bcm5719-llvm-fe9f1e60c517e71bd819cab9e90b110457ca42b6.tar.gz bcm5719-llvm-fe9f1e60c517e71bd819cab9e90b110457ca42b6.zip | |
Revert "Revert "Fix LLVMgold plugin name/path for non-Linux.""
Summary:
Relanding https://reviews.llvm.org/D35739 which was reverted because
it broke the tests on non-Linux. The tests have been fixed to be
platform agnostic, and additional tests have been added to make sure
that the plugin has the correct extension on each platform
(%pluginext doesn't work in CHECK lines).
Reviewers: srhines, pirama
Reviewed By: srhines
Subscribers: emaste, mehdi_amini, eraman, cfe-commits
Differential Revision: https://reviews.llvm.org/D36769
llvm-svn: 310960
Diffstat (limited to 'clang/test/Driver/lto.c')
| -rw-r--r-- | clang/test/Driver/lto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/lto.c b/clang/test/Driver/lto.c index d2f68f571af..20afd14eb88 100644 --- a/clang/test/Driver/lto.c +++ b/clang/test/Driver/lto.c @@ -36,19 +36,19 @@ // RUN: %clang -target x86_64-unknown-linux -### %s -flto 2> %t // RUN: FileCheck -check-prefix=CHECK-LINK-LTO-ACTION < %t %s // -// CHECK-LINK-LTO-ACTION: "-plugin" "{{.*}}/LLVMgold.so" +// CHECK-LINK-LTO-ACTION: "-plugin" "{{.*}}/LLVMgold.{{dll|dylib|so}}" // -flto=full should cause link using gold plugin // RUN: %clang -target x86_64-unknown-linux -### %s -flto=full 2> %t // RUN: FileCheck -check-prefix=CHECK-LINK-FULL-ACTION < %t %s // -// CHECK-LINK-FULL-ACTION: "-plugin" "{{.*}}/LLVMgold.so" +// CHECK-LINK-FULL-ACTION: "-plugin" "{{.*}}/LLVMgold.{{dll|dylib|so}}" // Check that subsequent -fno-lto takes precedence // RUN: %clang -target x86_64-unknown-linux -### %s -flto=full -fno-lto 2> %t // RUN: FileCheck -check-prefix=CHECK-LINK-NOLTO-ACTION < %t %s // -// CHECK-LINK-NOLTO-ACTION-NOT: "-plugin" "{{.*}}/LLVMgold.so" +// CHECK-LINK-NOLTO-ACTION-NOT: "-plugin" "{{.*}}/LLVMgold.{{dll|dylib|so}}" // -flto passes along an explicit debugger tuning argument. // RUN: %clang -target x86_64-unknown-linux -### %s -flto -glldb 2> %t |

