]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
compatibility with zstd-frugal (noBench mode)
authorYann Collet <cyan@fb.com>
Wed, 7 Dec 2016 01:56:20 +0000 (17:56 -0800)
committerYann Collet <cyan@fb.com>
Wed, 7 Dec 2016 01:56:20 +0000 (17:56 -0800)
programs/zstdcli.c

index 29bcc776359f0906f81c9eaf60352c3031eb78df..7ffb0bb62b3c5f0353def91dab0048bdbcd2b0c6 100644 (file)
@@ -334,11 +334,11 @@ int main(int argCount, const char* argv[])
                     case 'z': operation=zom_compress; argument++; break;
 
                          /* Decoding */
-                    case 'd': if (operation==zom_bench) {
-                            BMK_setDecodeOnly(1); argument++; break;   /* benchmark decode (hidden option) */
-                        } else {
+                    case 'd':
+#ifndef ZSTD_NOBENCH
+                            if (operation==zom_bench) { BMK_setDecodeOnly(1); argument++; break; }  /* benchmark decode (hidden option) */
+#endif
                             operation=zom_decompress; argument++; break;
-                        }
 
                         /* Force stdout, even if stdout==console */
                     case 'c': forceStdout=1; outFileName=stdoutmark; argument++; break;