[flang-commits] [flang] [llvm] [flang/flang-rt] Add -isysroot flag only to tests really requiring (PR #152914)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Mon Aug 11 01:27:06 PDT 2025
================
@@ -0,0 +1,13 @@
+from lit.llvm import llvm_config
+
+llvm_config.use_clang(required=False)
+if llvm_config.config.clang:
+ config.available_features.add("clang")
+ clangxx = next((subst for subst in llvm_config.config.substitutions
+ if "clangxx" in subst[0]), None)
+ config.substitutions.append(clangxx)
----------------
Meinersbur wrote:
Just move `llvm_config.use_clang(required=False)` to the top-level `lit.local.cfg`. We may eventually use `%clangxx` in tests in other folders, and I doubt keeping it local is worth the extra complexity.
https://github.com/llvm/llvm-project/pull/152914
More information about the flang-commits
mailing list