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-plugin-darwin.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-plugin-darwin.c')
| -rw-r--r-- | clang/test/Driver/lto-plugin-darwin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/lto-plugin-darwin.c b/clang/test/Driver/lto-plugin-darwin.c new file mode 100644 index 00000000000..db21f999ba2 --- /dev/null +++ b/clang/test/Driver/lto-plugin-darwin.c @@ -0,0 +1,6 @@ +// Check that Darwin uses LLVMgold.dylib. +// REQUIRES: system-darwin +// RUN: %clang -### %s -flto 2>&1 \ +// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s +// +// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.dylib" |

