[libcxx-commits] [libcxx] [libcxx] Add local %T substitution (PR #160026)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 21 20:51:05 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/160026.diff
1 Files Affected:
- (modified) libcxx/utils/libcxx/test/format.py (+1)
``````````diff
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")
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/160026
More information about the libcxx-commits
mailing list