From: Dan Albert Date: Tue, 22 Aug 2017 21:16:22 +0000 (+0000) Subject: Degeneralize more tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b83e1b574c7c602bcb03db74c17789def1a2dc1;p=clang 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 --- diff --git a/test/Driver/lto-plugin-darwin.c b/test/Driver/lto-plugin-darwin.c index db21f999ba..2e9e6ba5b4 100644 --- a/test/Driver/lto-plugin-darwin.c +++ b/test/Driver/lto-plugin-darwin.c @@ -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" diff --git a/test/Driver/lto-plugin-linux.c b/test/Driver/lto-plugin-linux.c index e30dce6b05..ac1eb14e2e 100644 --- a/test/Driver/lto-plugin-linux.c +++ b/test/Driver/lto-plugin-linux.c @@ -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" diff --git a/test/Driver/lto-plugin-windows.c b/test/Driver/lto-plugin-windows.c index 9d26df2b02..1b12702a98 100644 --- a/test/Driver/lto-plugin-windows.c +++ b/test/Driver/lto-plugin-windows.c @@ -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"