diff options
-rw-r--r-- | lld/test/ELF/lit.local.cfg | 7 | ||||
-rw-r--r-- | lld/test/lit.site.cfg.py.in | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lld/test/ELF/lit.local.cfg b/lld/test/ELF/lit.local.cfg index 98c97b66afba..ad2cf48e40f0 100644 --- a/lld/test/ELF/lit.local.cfg +++ b/lld/test/ELF/lit.local.cfg @@ -1 +1,8 @@ config.suffixes = ['.test', '.s', '.ll', '.bat'] + +# The environment variable DFLTCC=0 disables use of the hardware compression +# facility on SystemZ. When this facility is enabled, slightly different +# compression results can be seen, which can cause spurious failures in the +# compressed-debug-level.test test case. +if 's390x' in config.host_triple: + config.environment['DFLTCC'] = '0' diff --git a/lld/test/lit.site.cfg.py.in b/lld/test/lit.site.cfg.py.in index e0998ab87d47..c324b53021a1 100644 --- a/lld/test/lit.site.cfg.py.in +++ b/lld/test/lit.site.cfg.py.in @@ -15,6 +15,7 @@ config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@" config.lld_obj_root = "@LLD_BINARY_DIR@" config.lld_libs_dir = lit_config.substitute("@CURRENT_LIBS_DIR@") config.lld_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@") +config.host_triple = "@LLVM_HOST_TRIPLE@" config.target_triple = "@LLVM_TARGET_TRIPLE@" config.python_executable = "@Python3_EXECUTABLE@" config.have_zlib = @LLVM_ENABLE_ZLIB@ |