r353946 - [test] Tweak driver test from r353917 and r353922 to pass with a nondefault CLANG_DEFAULT_LINKER
Martin Storsjo via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 13 05:13:46 PST 2019
Author: mstorsjo
Date: Wed Feb 13 05:13:45 2019
New Revision: 353946
URL: http://llvm.org/viewvc/llvm-project?rev=353946&view=rev
Log:
[test] Tweak driver test from r353917 and r353922 to pass with a nondefault CLANG_DEFAULT_LINKER
Force -fuse-ld=ld, as some other tests in the same file do.
Loosen the regex matching the linker tool name as well, as this
can end up being <triple>-ld in case such a named tool exists.
Modified:
cfe/trunk/test/Driver/instrprof-ld.c
Modified: cfe/trunk/test/Driver/instrprof-ld.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/instrprof-ld.c?rev=353946&r1=353945&r2=353946&view=diff
==============================================================================
--- cfe/trunk/test/Driver/instrprof-ld.c (original)
+++ cfe/trunk/test/Driver/instrprof-ld.c Wed Feb 13 05:13:45 2019
@@ -123,9 +123,9 @@
// CHECK-WINDOWS-X86-64: "{{.*}}clang_rt.profile-x86_64.lib"
//
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
-// RUN: -target x86_64-mingw32 -fprofile-instr-generate \
+// RUN: -target x86_64-mingw32 -fprofile-instr-generate -fuse-ld=ld \
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | FileCheck --check-prefix=CHECK-MINGW-X86-64 %s
//
-// CHECK-MINGW-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
+// CHECK-MINGW-X86-64: "{{(.*[^.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
// CHECK-MINGW-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}windows{{/|\\\\}}libclang_rt.profile-x86_64.a"
More information about the cfe-commits
mailing list