diff options
| author | Martin Storsjo <martin@martin.st> | 2019-02-13 13:13:45 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-02-13 13:13:45 +0000 |
| commit | f81f7f3ef691058f3b1d970aa17b54284b8501ba (patch) | |
| tree | 25c90b9438570fb788458b69af778953b68cbdaf | |
| parent | 3f27395322db8c296f10d8ca92a6d46801a6876d (diff) | |
| download | bcm5719-llvm-f81f7f3ef691058f3b1d970aa17b54284b8501ba.tar.gz bcm5719-llvm-f81f7f3ef691058f3b1d970aa17b54284b8501ba.zip | |
[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
| -rw-r--r-- | clang/test/Driver/instrprof-ld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/instrprof-ld.c b/clang/test/Driver/instrprof-ld.c index 1fefa9cfff5..586d100ec8b 100644 --- a/clang/test/Driver/instrprof-ld.c +++ b/clang/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" |

