From: Dan Albert Date: Tue, 15 Aug 2017 22:10:44 +0000 (+0000) Subject: Add a target for new LTO plugin name tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb6fcfa4d27a28a5f8a05f23843b1ec55d08ec4b;p=clang 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310966 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/lto-plugin-darwin.c b/test/Driver/lto-plugin-darwin.c index db21f999ba..ac1586f56a 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 -target x86_64-unknown-linux -### %s -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..ced3af9d4e 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 -target x86_64-unknown-linux -### %s -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 2093e6a6ce..9fc8a41cb2 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 -target x86_64-unknown-linux -### %s -flto 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s // // CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.dll"