summaryrefslogtreecommitdiffstats
path: root/src/corelib/mimetypes
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-26 09:10:39 -0700
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-06-12 07:26:58 +0000
commit03dfd4199deb4a0f5123fb1eead42f7e1f85e9e3 (patch)
treef3d3af1ba4fd7cf8ea20fd664dbba23a131c6650 /src/corelib/mimetypes
parenteb72d788fe9d6301e6254fd86d388783c4484873 (diff)
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>
Diffstat (limited to 'src/corelib/mimetypes')
-rw-r--r--src/corelib/mimetypes/mime/generate.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/mimetypes/mime/generate.pl b/src/corelib/mimetypes/mime/generate.pl
index 4c1cb5bd9a..1427658e59 100644
--- a/src/corelib/mimetypes/mime/generate.pl
+++ b/src/corelib/mimetypes/mime/generate.pl
@@ -60,7 +60,7 @@ if ($zlib) {
if ($fname eq "--zstd") {
$fname = shift @ARGV;
if (checkCommand("zstd")) {
- $compress = "zstd -cq19 --single-thread";
+ $compress = "zstd -cq19 -T1";
$macro = "MIME_DATABASE_IS_ZSTD";
}
}