summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-09-16 08:25:53 +0200
committerKai Koehne <kai.koehne@qt.io>2020-09-19 13:48:45 +0200
commitcccace0c10d1b7d21cea00bd9f1b5169c1bbf007 (patch)
treea37dccd74d40f9f0f206db46e391e7623ffa3623 /qmake
parentfbefafe1593befb30cce17c843e9576df064358b (diff)
qmake: Make use of QHash deterministic
As a build tool, qmake should produce deterministic outputs. Pick-to: 5.15 Task-number: QTBUG-86675 Change-Id: Ifc855d6ddf025cdad3aa57aee79beabf9c6008e2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qmake/main.cpp b/qmake/main.cpp
index 4c3c92c296..b4ee8a75cf 100644
--- a/qmake/main.cpp
+++ b/qmake/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
@@ -448,6 +448,8 @@ bool qmake_setpwd(const QString &p)
int runQMake(int argc, char **argv)
{
+ qSetGlobalQHashSeed(0);
+
// stderr is unbuffered by default, but stdout buffering depends on whether
// there is a terminal attached. Buffering can make output from stderr and stdout
// appear out of sync, so force stdout to be unbuffered as well.