Skip to content

Commit 60e87c9

Browse files
committed
On linux the clang exectuable might be clang-20. Fix match.
1 parent 820a50d commit 60e87c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/DTLTO/dtlto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
// FORWARD: ld.lld
2323
// FORWARD-SAME: "--thinlto-distributor=d.exe"
24-
// FORWARD-SAME: "--thinlto-remote-compiler={{.*}}clang{{(.exe)?}}"
24+
// FORWARD-SAME: "--thinlto-remote-compiler={{.*}}clang{{[^\"]*}}"
2525
// FORWARD-SAME: "--thinlto-distributor-arg=a1"
2626
// FORWARD-SAME: "--thinlto-distributor-arg=a2"
2727
// FORWARD-SAME: "--thinlto-distributor-arg=a3"
@@ -46,7 +46,7 @@
4646

4747
// DEFAULT: ld.lld
4848
// DEFAULT-SAME: "--thinlto-distributor=d.exe"
49-
// DEFAULT-SAME: "--thinlto-remote-compiler={{.*}}clang{{(.exe)?}}"
49+
// DEFAULT-SAME: "--thinlto-remote-compiler={{.*}}clang{{[^\"]*}}"
5050

5151
/// Check that nothing is forwarded when the compiler is not in LTO mode, and that
5252
/// appropriate unused option warnings are issued.

0 commit comments

Comments
 (0)