[libcxx-commits] [libcxx] [libcxx] Add local %T substitution (PR #160026)
Aiden Grossman via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 21 20:50:37 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/160026
This patch adds a %T substitution directly into the libc++ test format.
This ensures that the libc++ test format will continue to work when we
remove support for %T in llvm lit.
>From 105725731ac523ea4e0924f2d5a85a0c7924e46b Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 22 Sep 2025 03:50:25 +0000
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.6
---
libcxx/utils/libcxx/test/format.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/libcxx/utils/libcxx/test/format.py b/libcxx/utils/libcxx/test/format.py
index 5765afec399cf..c9dffd1bb7971 100644
--- a/libcxx/utils/libcxx/test/format.py
+++ b/libcxx/utils/libcxx/test/format.py
@@ -92,6 +92,7 @@ def parseScript(test, preamble):
# errors, which doesn't make sense for clang-verify tests because we may want to check
# for specific warning diagnostics.
_checkBaseSubstitutions(substitutions)
+ substitutions.append(("%T", tmpDir))
substitutions.append(
("%{build}", "%{cxx} %s %{flags} %{compile_flags} %{link_flags} -o %t.exe")
)
More information about the libcxx-commits
mailing list