This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Support --decompress-debug-sections when zlib is disabled
ClosedPublic

Authored by MaskRay on Oct 11 2022, 9:39 PM.

Details

Summary

When zlib is disabled at build time, the diagnostic `LLVM was not compiled with
LLVM_ENABLE_ZLIB: cannot decompress` for --decompress-debug-sections may be
inaccurate: if zstd is enabled, we should still support zstd decompression.

It's not useful to test zlib and zstd. Just remove the diagnostic and add a new
one before compression::decompress.

This fixes compress-debug-sections-zstd.test

Diff Detail

Event Timeline

MaskRay created this revision.Oct 11 2022, 9:39 PM
MaskRay requested review of this revision.Oct 11 2022, 9:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 9:39 PM
phosek accepted this revision.Oct 11 2022, 10:31 PM

LGTM

This revision is now accepted and ready to land.Oct 11 2022, 10:31 PM

LGTM!

This change is fixing my issue. Thanks !
I will close my review.

This revision was landed with ongoing or failed builds.Oct 12 2022, 11:52 AM
This revision was automatically updated to reflect the committed changes.