Skip to content

Commit f81f7f3

Browse files
committed
[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. llvm-svn: 353946
1 parent 3f27395 commit f81f7f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/instrprof-ld.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@
123123
// CHECK-WINDOWS-X86-64: "{{.*}}clang_rt.profile-x86_64.lib"
124124
//
125125
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
126-
// RUN: -target x86_64-mingw32 -fprofile-instr-generate \
126+
// RUN: -target x86_64-mingw32 -fprofile-instr-generate -fuse-ld=ld \
127127
// RUN: -resource-dir=%S/Inputs/resource_dir \
128128
// RUN: | FileCheck --check-prefix=CHECK-MINGW-X86-64 %s
129129
//
130-
// CHECK-MINGW-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
130+
// CHECK-MINGW-X86-64: "{{(.*[^.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
131131
// CHECK-MINGW-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}windows{{/|\\\\}}libclang_rt.profile-x86_64.a"

0 commit comments

Comments
 (0)