[PATCH] D149273: [LLD][ELF] Fix compressed-debug-level test on SystemZ
Ulrich Weigand via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 05:00:01 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG95bb95ebe448: [LLD][ELF] Fix compressed-debug-level test on SystemZ (authored by uweigand).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149273/new/
https://reviews.llvm.org/D149273
Files:
lld/test/ELF/lit.local.cfg
lld/test/lit.site.cfg.py.in
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@
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'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149273.519807.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230505/c14a00ad/attachment.bin>
More information about the llvm-commits
mailing list