Remove usage of ZSTD_CLEVEL_DEFAULT define.
2019-07-09 Martin Liska <mliska@suse.cz> * lto-compress.c (lto_normalized_zstd_level): Do not use ZSTD_CLEVEL_DEFAULT as it is not default in old releases of libzstd. One can use 0 as a default compression level. From-SVN: r273263
This commit is contained in:
parent
64865fe0f9
commit
7a26ff040e
@ -1,3 +1,9 @@
|
||||
2019-07-09 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* lto-compress.c (lto_normalized_zstd_level): Do not use
|
||||
ZSTD_CLEVEL_DEFAULT as it is not default in old releases
|
||||
of libzstd. One can use 0 as a default compression level.
|
||||
|
||||
2019-07-09 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* doc/invoke.texi: Add link from -fprofile-dir option.
|
||||
|
@ -115,13 +115,10 @@ lto_normalized_zstd_level (void)
|
||||
{
|
||||
int level = flag_lto_compression_level;
|
||||
|
||||
if (level != ZSTD_CLEVEL_DEFAULT)
|
||||
{
|
||||
if (level < 1)
|
||||
level = 1;
|
||||
else if (level > ZSTD_maxCLevel ())
|
||||
level = ZSTD_maxCLevel ();
|
||||
}
|
||||
if (level < 0)
|
||||
level = 0;
|
||||
else if (level > ZSTD_maxCLevel ())
|
||||
level = ZSTD_maxCLevel ();
|
||||
|
||||
return level;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user