Degeneralize more tests.

As before, not every platform supports LTO. Make sure the platform
we're targeting is one that supports it (regardless of the *host*
platform).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Albert 2017-08-22 21:16:22 +00:00
parent 99c20f4d54
commit 4b83e1b574
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 -### %s -target x86_64-unknown-linux -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 -### %s -target x86_64-unknown-linux -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 -### %s -target x86_64-unknown-linux -flto 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s
//
// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}\\LLVMgold.dll"