[LLD][ELF] Fix compressed-debug-level test on SystemZ
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 5 May 2023 11:57:59 +0000 (13:57 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 5 May 2023 11:57:59 +0000 (13:57 +0200)
commit95bb95ebe44882854aeb47f8b3a6a38e775d8232
treeeb2c9ca4b2fd84b9433b7485a320a6b4d7e717fc
parent5b7f8d9da563aafc486dad6936af18489cbee880
[LLD][ELF] Fix compressed-debug-level test on SystemZ

The libz compression library on SystemZ by default makes use of the
platform's hardware-accelerated compression facility. This is much
faster than the regular software implementation, but often results in
slightly different outputs. This causes failures with the
compressed-debug-level test case.

To fix this, set the DFLTCC environment variable to zero while running
tests on SystemZ, which prevents use of hardware compression and falls
back to the software implementation.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D149273
lld/test/ELF/lit.local.cfg
lld/test/lit.site.cfg.py.in