Reapply "[compiler-rt] Default to Lit's Internal Shell (#168232)" (#168760)

This reverts commit eb20b5392599996ce94e4c0392095cacaa33687c.

This relands the compiler-rt internal shell after XRay and Darwin tests
that were failing under the internal shell have been fixed.
This commit is contained in:
Aiden Grossman 2025-11-20 07:51:33 -08:00 committed by GitHub
parent 21fedcbf89
commit b725bdba1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,16 +113,13 @@ 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")
if use_lit_shell:
# 0 is external, "" is default, and everything else is internal.
execute_external = use_lit_shell == "0"
else:
# Otherwise we default to internal on Windows and external elsewhere, as
# bash on Windows is usually very slow.
execute_external = not sys.platform in ["win32"]
execute_external = use_lit_shell == "0"
# Allow expanding substitutions that are based on other substitutions
config.recursiveExpansionLimit = 10