[AIX] Use internal lit shell for TableGen instead of a global setting (#113627)

This is to address the latest lit regressions
https://lab.llvm.org/buildbot/#/builders/64/builds/1285 caused by using
the internal lit shell. This change will limit using the internal lit
shell to TableGen on AIX so we do not hit these regressions.
This commit is contained in:
Abhina Sree
2024-10-25 13:06:02 -04:00
committed by GitHub
parent 305a1ceae3
commit 9d88543301
2 changed files with 8 additions and 7 deletions

View File

@@ -1,2 +1,10 @@
import platform
import lit.formats
config.suffixes = [".td"]
config.excludes = ["Common", "Inputs"]
# AIX 'diff' command doesn't support --strip-trailing-cr, but the internal
# python implementation does, so use that for cross platform compatibility
if platform.system() == "AIX":
config.test_format = lit.formats.ShTest()

View File

@@ -57,13 +57,6 @@ class LLVMConfig(object):
self.lit_config.note("using lit tools: {}".format(path))
lit_path_displayed = True
if platform.system() == "AIX":
# Diff on AIX doesn't have all the required features (see
# https://github.com/llvm/llvm-project/pull/108871 and
# https://github.com/llvm/llvm-project/pull/112997#issuecomment-2429656192)
# so always use the internal shell.
self.use_lit_shell = True
if platform.system() == "OS/390":
self.with_environment("_BPXK_AUTOCVT", "ON")
self.with_environment("_TAG_REDIR_IN", "TXT")