[clang] f6fa998 - Fix tests with non-default CLANG_DEFAULT_LINKER

Yi Kong via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 5 02:28:37 PDT 2022


Author: Yi Kong
Date: 2022-07-05T17:26:34+08:00
New Revision: f6fa9985900ee757a2cfce0f472ff1fc84463242

URL: https://github.com/llvm/llvm-project/commit/f6fa9985900ee757a2cfce0f472ff1fc84463242
DIFF: https://github.com/llvm/llvm-project/commit/f6fa9985900ee757a2cfce0f472ff1fc84463242.diff

LOG: Fix tests with non-default CLANG_DEFAULT_LINKER

Force -fuse-ld option, as some other tests in the same file do.

Added: 
    

Modified: 
    clang/test/Driver/instrprof-ld.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/instrprof-ld.c b/clang/test/Driver/instrprof-ld.c
index 3a6cdab10c393..9a58cd3a0be75 100644
--- a/clang/test/Driver/instrprof-ld.c
+++ b/clang/test/Driver/instrprof-ld.c
@@ -154,7 +154,7 @@
 //
 // RUN: %clang -### %s 2>&1 \
 // RUN:     --target=i386-pc-win32 -fprofile-instr-generate \
-// RUN:     -resource-dir=%S/Inputs/resource_dir \
+// RUN:     -resource-dir=%S/Inputs/resource_dir -fuse-ld=link \
 // RUN:   | FileCheck --check-prefix=CHECK-WINDOWS-I386 %s
 //
 // CHECK-WINDOWS-I386: "{{.*}}link{{(.exe)?}}"
@@ -162,7 +162,7 @@
 //
 // RUN: %clang -### %s 2>&1 \
 // RUN:     --target=x86_64-pc-win32 -fprofile-instr-generate \
-// RUN:     -resource-dir=%S/Inputs/resource_dir \
+// RUN:     -resource-dir=%S/Inputs/resource_dir -fuse-ld=link \
 // RUN:   | FileCheck --check-prefix=CHECK-WINDOWS-X86-64 %s
 //
 // CHECK-WINDOWS-X86-64: "{{.*}}link{{(.exe)?}}"


        


More information about the cfe-commits mailing list