[libcxx-commits] [libcxx] 37e7ad1 - [libcxx] Add local %T substitution
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 26 15:48:05 PDT 2025
Author: Aiden Grossman
Date: 2025-09-26T15:48:02-07:00
New Revision: 37e7ad184d002db15f72771938755580433cf96d
URL: https://github.com/llvm/llvm-project/commit/37e7ad184d002db15f72771938755580433cf96d
DIFF: https://github.com/llvm/llvm-project/commit/37e7ad184d002db15f72771938755580433cf96d.diff
LOG: [libcxx] Add local %T substitution
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.
Reviewers: #reviewers-libcxx, ldionne, philnik777
Pull Request: https://github.com/llvm/llvm-project/pull/160026
Added:
Modified:
libcxx/utils/libcxx/test/format.py
Removed:
################################################################################
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