Add a target for new LTO plugin name tests.

Not all targets will use -plugin with -flto. Pick a fixed target so
this works regardless of the default target (regardless of host OS,
the toolchain should be picking the correct LTO plugin for a target
that supports it).

llvm-svn: 310966
This commit is contained in:
Dan Albert 2017-08-15 22:10:44 +00:00
parent 1bc6cb64b1
commit 255387650a
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// Check that Darwin uses LLVMgold.dylib.
// REQUIRES: system-darwin
// RUN: %clang -### %s -flto 2>&1 \
// RUN: %clang -target x86_64-unknown-linux -### %s -flto 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s
//
// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.dylib"

View File

@ -1,6 +1,6 @@
// Check that non-Windows, non-Darwin OSs use LLVMgold.so.
// REQUIRES: !system-darwin && !system-windows
// RUN: %clang -### %s -flto 2>&1 \
// RUN: %clang -target x86_64-unknown-linux -### %s -flto 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s
//
// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.so"

View File

@ -1,6 +1,6 @@
// Check that Windows uses LLVMgold.dll.
// REQUIRES: system-windows
// RUN: %clang -### %s -flto 2>&1 \
// RUN: %clang -target x86_64-unknown-linux -### %s -flto 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s
//
// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.dll"