Index: lld/test/ELF/lit.local.cfg =================================================================== --- lld/test/ELF/lit.local.cfg +++ 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' Index: lld/test/lit.site.cfg.py.in =================================================================== --- lld/test/lit.site.cfg.py.in +++ lld/test/lit.site.cfg.py.in @@ -15,6 +15,7 @@ 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@