[compiler-rt] 16ab8c0 - [compiler-rt] Default to Lit's Internal Shell

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 21:35:08 PDT 2025


Author: Aiden Grossman
Date: 2025-10-30T21:35:04-07:00
New Revision: 16ab8c0026ab80493089663a315d28c4cf9d1794

URL: https://github.com/llvm/llvm-project/commit/16ab8c0026ab80493089663a315d28c4cf9d1794
DIFF: https://github.com/llvm/llvm-project/commit/16ab8c0026ab80493089663a315d28c4cf9d1794.diff

LOG: [compiler-rt] Default to Lit's Internal Shell

All of the tests should work with the internal shell now, at least on
x86 Linux. Enable it by default for the performance/debuggability
advantages.

Reviewers: vitalybuka, fmayer

Reviewed By: fmayer, vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/165148

Added: 
    

Modified: 
    compiler-rt/test/lit.common.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 9d2f02189b8bd..1468c0742a766 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -113,12 +113,17 @@ def push_dynamic_library_lookup_path(config, new_path):
         config.environment[dynamic_library_lookup_var] = new_ld_library_path_64
 
 
+# TODO: Consolidate the logic for turning on the internal shell by default for all LLVM test suites.
+# See https://github.com/llvm/llvm-project/issues/106636 for more details.
+#
 # Choose between lit's internal shell pipeline runner and a real shell.  If
 # LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
-use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL")
+use_lit_shell = True
+lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
+if lit_shell_env:
+    use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
 if use_lit_shell:
-    # 0 is external, "" is default, and everything else is internal.
-    execute_external = use_lit_shell == "0"
+    execute_external = True
 else:
     # Otherwise we default to internal on Windows and external elsewhere, as
     # bash on Windows is usually very slow.


        


More information about the llvm-commits mailing list