aboutsummaryrefslogtreecommitdiff
path: root/libcxx/utils
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-05-28 18:29:47 -0700
committerGitHub <noreply@github.com>2024-05-28 18:29:47 -0700
commit633ea41b54bf7b2f10850bbd5ba3c4ab06081595 (patch)
tree72dbe1af28ed588070d443aa6da9fe6f38c3e15f /libcxx/utils
parent04f01a2b9cedc291fa7dd941de841dc957c75a33 (diff)
downloadllvm-633ea41b54bf7b2f10850bbd5ba3c4ab06081595.zip
llvm-633ea41b54bf7b2f10850bbd5ba3c4ab06081595.tar.gz
llvm-633ea41b54bf7b2f10850bbd5ba3c4ab06081595.tar.bz2
[runtimes] Reintroduce a way to select the compiler used for the test suite (#93542)
A while back, the cxx_under_test Lit parameter was removed. This patch reintroduces a Lit parameter called "compiler" which controls the value of the %{cxx} substitution used in the test suite. To run the test suite with a different compiler, one can now pass --param compiler=<path>.
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/params.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index c2d294e..4c8590a 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -144,6 +144,14 @@ def getSuitableClangTidy(cfg):
# fmt: off
DEFAULT_PARAMETERS = [
Parameter(
+ name="compiler",
+ type=str,
+ help="The path of the compiler to use for testing.",
+ actions=lambda cxx: [
+ AddSubstitution("%{cxx}", shlex.quote(cxx)),
+ ],
+ ),
+ Parameter(
name="target_triple",
type=str,
help="The target triple to compile the test suite for. This must be "