]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed zstd-decompress 1332/head
authorYann Collet <cyan@fb.com>
Sun, 23 Sep 2018 00:21:39 +0000 (17:21 -0700)
committerYann Collet <cyan@fb.com>
Sun, 23 Sep 2018 00:21:39 +0000 (17:21 -0700)
which cannot support ZSTD_minCLevel()

programs/zstdcli.c

index 6b2c5d10a8b8b3982ea21df1801be6a765115392..c00d0525860df3b30b8ad0180687b756af94c190 100644 (file)
@@ -631,6 +631,7 @@ int main(int argCount, const char* argv[])
                             compressionParams.windowLog = ldmWindowLog;
                         continue;
                     }
+#ifndef ZSTD_NOCOMPRESS   /* linking ZSTD_minCLevel() requires compression support */
                     if (longCommandWArg(&argument, "--fast")) {
                         /* Parse optional acceleration factor */
                         if (*argument == '=') {
@@ -652,6 +653,7 @@ int main(int argCount, const char* argv[])
                         }
                         continue;
                     }
+#endif
                     /* fall-through, will trigger bad_usage() later on */
                 }