Skip to content

Commit c8e8305

Browse files
committed
Remove other response file usage
1 parent 93dda6f commit c8e8305

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

clang/test/Driver/DTLTO/dtlto.c

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
/// Check DTLTO options are forwarded to the linker.
44

5-
/// Create a response file to check that explicitly specified -Xthinlto-distributor
6-
/// options are forwarded correctly.
7-
// RUN: echo "-flto=thin \"%/s\" -### -fuse-ld=lld --target=x86_64-linux-gnu \
8-
// RUN: -Xthinlto-distributor=a1 \
9-
// RUN: -Xthinlto-distributor=a2,a3" > %t_l1.rsp
10-
115
/// Check that options are forwarded as expected with --thinlto-distributor=.
12-
// RUN: %clang @%t_l1.rsp -fthinlto-distributor=d.exe -Werror 2>&1 | \
6+
// RUN: %clang -flto=thin %s -### -fuse-ld=lld --target=x86_64-linux-gnu \
7+
// RUN: -Xthinlto-distributor=a1 -Xthinlto-distributor=a2,a3 \
8+
// RUN: -fthinlto-distributor=d.exe -Werror 2>&1 | \
139
// RUN: FileCheck %s --check-prefix=FORWARD
1410

1511
// FORWARD: ld.lld
@@ -21,20 +17,18 @@
2117

2218
/// Check that options are not added without --thinlto-distributor= and
2319
/// that a warning is issued for unused -Xthinlto-distributor options.
24-
// RUN: %clang @%t_l1.rsp 2>&1 | \
20+
// RUN: %clang -flto=thin %s -### -fuse-ld=lld --target=x86_64-linux-gnu \
21+
// RUN: -Xthinlto-distributor=a1 -Xthinlto-distributor=a2,a3 2>&1 | \
2522
// RUN: FileCheck %s --check-prefix=NODIST
2623

2724
// NODIST: warning: argument unused during compilation: '-Xthinlto-distributor=a1'
2825
// NODIST: warning: argument unused during compilation: '-Xthinlto-distributor=a2,a3'
2926
// NODIST: ld.lld
3027

31-
/// Create a response file to check the default behavior.
32-
// RUN: echo " \"%/s\" -### -fuse-ld=lld --target=x86_64-linux-gnu \
33-
// RUN: -fthinlto-distributor=d.exe" > %t_l2.rsp
34-
3528
/// Check the expected arguments are forwarded by default with only
3629
/// --thinlto-distributor=.
37-
// RUN: %clang -flto=thin @%t_l2.rsp -Werror 2>&1 | \
30+
// RUN: %clang -flto=thin %s -### -fuse-ld=lld --target=x86_64-linux-gnu \
31+
// RUN: -fthinlto-distributor=d.exe -Werror 2>&1 | \
3832
// RUN: FileCheck %s --check-prefix=DEFAULT
3933

4034
// DEFAULT: ld.lld
@@ -43,7 +37,8 @@
4337

4438
/// Check that nothing is forwarded when the compiler is not in LTO mode, and that
4539
/// appropriate unused option warnings are issued.
46-
// RUN: %clang @%t_l2.rsp 2>&1 | \
40+
// RUN: %clang %s -### -fuse-ld=lld --target=x86_64-linux-gnu \
41+
// RUN: -fthinlto-distributor=d.exe 2>&1 | \
4742
// RUN: FileCheck %s --check-prefix=NOFLTO
4843

4944
// NOFLTO: warning: argument unused during compilation: '-fthinlto-distributor=d.exe'

0 commit comments

Comments
 (0)