From 03dfd4199deb4a0f5123fb1eead42f7e1f85e9e3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 26 May 2020 09:10:39 -0700 Subject: [PATCH] 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 --- src/corelib/mimetypes/mime/generate.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } }