[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 Apr 28 06:01:32 PDT 2023


uweigand updated this revision to Diff 517888.
uweigand added a comment.
This revision is now accepted and ready to land.

Use `config.environment` to set environment variable.


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.517888.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/f9d1291e/attachment.bin>


More information about the llvm-commits mailing list