Author: danalbert Date: Tue Aug 22 14:16:22 2017 New Revision: 311488 URL: http://llvm.org/viewvc/llvm-project?rev=311488&view=rev Log: 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). Modified: cfe/trunk/test/Driver/lto-plugin-darwin.c cfe/trunk/test/Driver/lto-plugin-linux.c cfe/trunk/test/Driver/lto-plugin-windows.c Modified: cfe/trunk/test/Driver/lto-plugin-darwin.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto-plugin-darwin.c?rev=311488&r1=311487&r2=311488&view=diff ============================================================================== --- cfe/trunk/test/Driver/lto-plugin-darwin.c (original) +++ cfe/trunk/test/Driver/lto-plugin-darwin.c Tue Aug 22 14:16:22 2017 @@ -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" Modified: cfe/trunk/test/Driver/lto-plugin-linux.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto-plugin-linux.c?rev=311488&r1=311487&r2=311488&view=diff ============================================================================== --- cfe/trunk/test/Driver/lto-plugin-linux.c (original) +++ cfe/trunk/test/Driver/lto-plugin-linux.c Tue Aug 22 14:16:22 2017 @@ -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" Modified: cfe/trunk/test/Driver/lto-plugin-windows.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto-plugin-windows.c?rev=311488&r1=311487&r2=311488&view=diff ============================================================================== --- cfe/trunk/test/Driver/lto-plugin-windows.c (original) +++ cfe/trunk/test/Driver/lto-plugin-windows.c Tue Aug 22 14:16:22 2017 @@ -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" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits