From cccace0c10d1b7d21cea00bd9f1b5169c1bbf007 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 16 Sep 2020 08:25:53 +0200 Subject: 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 --- qmake/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3