================
@@ -143,10 +143,13 @@ static Error bundleImages() {
SmallString<0> Buffer;
if (Compress) {
- if (const char *Reason =
- compression::getReasonIfUnsupported(CompressionFormat))
+ compression::Format Format = CompressionFormat;
+ if (!CompressionFormat.getNumOccurrences() &&
+ !compression::zstd::isAvailable())
+ Format = compression::Format::Zlib;
----------------
yxsamliu wrote:
Thanks, the earlier changes look good. The new level check rejects valid
values: zlib accepts `-1` for its default level, and zstd accepts `-10`. Please
use the codecs’ supported ranges and add tests for these values.
https://github.com/llvm/llvm-project/pull/227765
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits