[libcxx-commits] [libcxx] [libc++] Fixes lit portability issues. (PR #72435)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 15 15:05:57 PST 2023


================
@@ -29,7 +29,13 @@ def appendToSubstitution(substitutions, key, value):
     return [(k, v + " " + value) if k == key else (k, v) for (k, v) in substitutions]
 
 
-std = getSubstitution("%{cxx_std}", config)
+# External users of the LLVM test suite might not have set the substitutions.
+std = ""
+try:
+    std = getSubstitution("%{cxx_std}", config)
+except:
+    pass
----------------
philnik777 wrote:

`cxx_std` is only ever used by libc++-specific tests, so I'm not sure it makes sense to require it to be provided.

https://github.com/llvm/llvm-project/pull/72435


More information about the libcxx-commits mailing list