================
@@ -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:

A quick reminder: the new level check still rejects valid values. zlib accepts 
`-1`, and zstd accepts `-10`. Could you update the check and add tests for both?

https://github.com/llvm/llvm-project/pull/227765
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to