Skip to content

Commit edfec9c

Browse files
authored
[DTLTO][TEST] Fix Clang driver test failing on some build bots (llvm#148908)
Not all builds name the compiler executable `clang`. For example, the Fuchsia build bots use `llvm` as their single toolchain executable name, as they combine everything together in a busybot-style binary. Update the Clang driver test to simply check that a non-empty path is provided for the `--thinlto-remote-compiler` argument, rather than hardcoding the executable name. The cross-project test will verify that the path is valid later. Should fix llvm#147265.
1 parent 041a8a9 commit edfec9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/DTLTO/dtlto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// FORWARD: ld.lld
1212
// FORWARD-SAME: "--thinlto-distributor=d.exe"
13-
// FORWARD-SAME: "--thinlto-remote-compiler={{.*}}clang{{[^\"]*}}"
13+
// FORWARD-SAME: "--thinlto-remote-compiler={{[^"]+}}"
1414
// FORWARD-SAME: "--thinlto-distributor-arg=a1"
1515
// FORWARD-SAME: "--thinlto-distributor-arg=a2"
1616
// FORWARD-SAME: "--thinlto-distributor-arg=a3"

0 commit comments

Comments
 (0)