Skip to content

Commit 69c5ff4

Browse files
committed
[InstrProfiling] Use -fuse-ld=lld in instrprof-gc-sections test
This was accidentally omitted in 603d58b leading to a test failure on some of the bots that don't use lld as the default linker.
1 parent fda5192 commit 69c5ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/profile/instrprof-gc-sections.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
// Note: When there is no code in a program, we expect to see the exact same
2525
// set of external functions provided by the profile runtime.
2626

27-
// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fdata-sections -Wl,--gc-sections -shared -o %t.nocode.so %s
27+
// RUN: %clang_profgen -fuse-ld=lld -fcoverage-mapping -ffunction-sections -fdata-sections -Wl,--gc-sections -shared -o %t.nocode.so %s
2828
// RUN: llvm-nm -jgU %t.nocode.so | grep -vE "__start_.*|__stop_.*" > %t.nocode.syms
29-
// RUN: llvm-nm -jgU %t | grep -vE "main|foo|_start|__libc_.*" > %t.code.syms
29+
// RUN: llvm-nm -jgU %t | grep -vE "main|_start|__libc_.*" > %t.code.syms
3030
// RUN: diff %t.nocode.syms %t.code.syms
3131

3232
// Note: We also check the IR instrumentation and expect foo() to be garbage

0 commit comments

Comments
 (0)