[clang] edfec9c - [DTLTO][TEST] Fix Clang driver test failing on some build bots (#148908)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 11:13:10 PDT 2025
Author: bd1976bris
Date: 2025-07-15T19:13:07+01:00
New Revision: edfec9c5829f4778bd38f3ca4019105eb481df49
URL: https://github.com/llvm/llvm-project/commit/edfec9c5829f4778bd38f3ca4019105eb481df49
DIFF: https://github.com/llvm/llvm-project/commit/edfec9c5829f4778bd38f3ca4019105eb481df49.diff
LOG: [DTLTO][TEST] Fix Clang driver test failing on some build bots (#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 #147265.
Added:
Modified:
clang/test/Driver/DTLTO/dtlto.c
Removed:
################################################################################
diff --git a/clang/test/Driver/DTLTO/dtlto.c b/clang/test/Driver/DTLTO/dtlto.c
index d72e487e706b2..96795d9a4e6a4 100644
--- a/clang/test/Driver/DTLTO/dtlto.c
+++ b/clang/test/Driver/DTLTO/dtlto.c
@@ -10,7 +10,7 @@
// FORWARD: ld.lld
// FORWARD-SAME: "--thinlto-distributor=d.exe"
-// FORWARD-SAME: "--thinlto-remote-compiler={{.*}}clang{{[^\"]*}}"
+// FORWARD-SAME: "--thinlto-remote-compiler={{[^"]+}}"
// FORWARD-SAME: "--thinlto-distributor-arg=a1"
// FORWARD-SAME: "--thinlto-distributor-arg=a2"
// FORWARD-SAME: "--thinlto-distributor-arg=a3"
More information about the cfe-commits
mailing list