]> granicus.if.org Git - clang/commitdiff
Add a target for new LTO plugin name tests.
authorDan Albert <danalbert@google.com>
Tue, 15 Aug 2017 22:10:44 +0000 (22:10 +0000)
committerDan Albert <danalbert@google.com>
Tue, 15 Aug 2017 22:10:44 +0000 (22:10 +0000)
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310966 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/lto-plugin-darwin.c
test/Driver/lto-plugin-linux.c
test/Driver/lto-plugin-windows.c

index db21f999ba2603d405710dbdb2168790f13a4413..ac1586f56a05889613e7353007e947e933e161c7 100644 (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"
index e30dce6b05585383f20ca69853277a2770443772..ced3af9d4e4563a6c4c7a7e0b53a8e664ab5afbf 100644 (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"
index 2093e6a6ceedad0afda0a0af5c47ab706e268cf3..9fc8a41cb22720610f957392c880e11203277321 100644 (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"