[llvm] [llvm-objcopy] Report unsupported formats before compression (PR #202357)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 01:11:50 PDT 2026


================
@@ -0,0 +1,5 @@
+# UNSUPPORTED: zstd
+# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t
+# RUN: not llvm-objcopy --compress-sections '.debug_foo=zstd' %t /dev/null 2>&1 | FileCheck %s -DFILE=%t
+
+# CHECK: error: '[[FILE]]': failed to compress section '.debug_foo': LLVM was not built with LLVM_ENABLE_ZSTD or did not find zstd at build time
----------------
jh7370 wrote:

Ditto.

https://github.com/llvm/llvm-project/pull/202357


More information about the llvm-commits mailing list