From: Martin Storsjo Date: Wed, 13 Feb 2019 13:13:45 +0000 (+0000) Subject: [test] Tweak driver test from r353917 and r353922 to pass with a nondefault CLANG_DEF... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ce9ea6513d9f1415407101138fe6ef4a7322c2;p=clang [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 -ld in case such a named tool exists. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353946 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/instrprof-ld.c b/test/Driver/instrprof-ld.c index 1fefa9cfff..586d100ec8 100644 --- a/test/Driver/instrprof-ld.c +++ b/test/Driver/instrprof-ld.c @@ -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"