[all-commits] [llvm/llvm-project] f2404d: [LLD][ELF] Fix compressed-debug-level test on SystemZ

Ulrich Weigand via All-commits all-commits at lists.llvm.org
Thu Apr 27 08:51:21 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2404d589ece81b029c607af011c372d52bff8d2
  Author: Ulrich Weigand <ulrich.weigand at de.ibm.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M lld/test/ELF/compressed-debug-level.test

  Log Message:
  [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, run this test while setting the DFLTCC environment
variable to zero, which prevents use of hardware compression and falls
back to the software implementation. (This should not have any effect
on other platforms.)

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D149273

More information about the All-commits mailing list