Skip to content

Commit 44abe76

Browse files
committed
Introduce a second linker response file which will simplify the test when additional test cases are added.
1 parent fb25cda commit 44abe76

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/Driver/DTLTO/dtlto.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@
3636
// NODIST: warning: argument unused during compilation: '-Xthinlto-distributor=a2,a3'
3737
// NODIST: ld.lld
3838

39+
/// Create a response file to check the default behavior.
40+
// RUN: echo " \"%/s\" -### -fuse-ld=lld --target=x86_64-linux-gnu \
41+
// RUN: -fthinlto-distributor=d.exe" > %t_l2.rsp
3942

4043
/// Check the expected arguments are forwarded by default with only
4144
/// --thinlto-distributor=.
42-
// RUN: %clang --target=x86_64-linux-gnu -fthinlto-distributor=d.exe \
43-
// RUN: -fuse-ld=lld -### %s 2>&1 | \
45+
// RUN: %clang -flto=thin @%t_l2.rsp 2>&1 | \
4446
// RUN: FileCheck @%t_f.rsp --check-prefix=DEFAULT
4547

4648
// DEFAULT: ld.lld

0 commit comments

Comments
 (0)