QMimeDatabase/zstd: use -T1 instead of --single-thread
Some older versions of the command-line tool don't have --single-thread but do have -T1. They're slightly different according to the documentation, but it's not important to us. What we want is to make sure we consume a single CPU during build. Fixes: QTBUG-84792 Pick-to: 5.15 Change-Id: Ied637aece2a7427b8a2dfffd16129fe88a0466ee Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
eb72d788fe
commit
03dfd4199d
@ -60,7 +60,7 @@ if ($zlib) {
|
|||||||
if ($fname eq "--zstd") {
|
if ($fname eq "--zstd") {
|
||||||
$fname = shift @ARGV;
|
$fname = shift @ARGV;
|
||||||
if (checkCommand("zstd")) {
|
if (checkCommand("zstd")) {
|
||||||
$compress = "zstd -cq19 --single-thread";
|
$compress = "zstd -cq19 -T1";
|
||||||
$macro = "MIME_DATABASE_IS_ZSTD";
|
$macro = "MIME_DATABASE_IS_ZSTD";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user