From: Yann Collet Date: Wed, 7 Dec 2016 01:56:20 +0000 (-0800) Subject: compatibility with zstd-frugal (noBench mode) X-Git-Tag: v1.1.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a826e592bf0529d99f823fc7a4037f6472e7783;p=thirdparty%2Fzstd.git compatibility with zstd-frugal (noBench mode) --- diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 29bcc7763..7ffb0bb62 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -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;