]> granicus.if.org Git - llvm/commit
[llvm-objcopy] - Report "no zlib available" error properly when --compress-debug...
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 5 Mar 2019 11:32:14 +0000 (11:32 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 5 Mar 2019 11:32:14 +0000 (11:32 +0000)
commitde9aea95306a360ddf2d7e455572fdad06c916e3
treef1e5f06d39afd954895760ff3a2bf13d52b92287
parentc3ee69937015ddc534169bb9040f89856279bff7
[llvm-objcopy] - Report "no zlib available" error properly when --compress-debug-sections is used.

If zlib is not available, and --compress-debug-sections is passed,
we want to report an error. Currently, it is only reported for
--compress_debug_sections= form of the option.

Fixes the https://bugs.llvm.org/show_bug.cgi?id=40886.

I do not think there is a way to write a test for this.

Differential revision: https://reviews.llvm.org/D58909

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355391 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/CopyConfig.cpp