aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/generator
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-26 08:41:03 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-26 11:11:19 +0000
commit285033392e3c5a29d35cf985508309f2a9d61628 (patch)
treeaefa13ec58780facf2e8bb61635807eff72675fb /sources/shiboken2/generator
parent0479cbd6abc8fffb9ba8b5f94de067e1670ffffa (diff)
shiboken: Work around non-deterministic builds
Request deterministic ordering of QHash. Task-number: PYSIDE-757 Change-Id: Ifec8f9d39cb183cffeb58440156204f2ccb56a2c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/generator')
-rw-r--r--sources/shiboken2/generator/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/shiboken2/generator/main.cpp b/sources/shiboken2/generator/main.cpp
index 7ee43710e..0b7c15244 100644
--- a/sources/shiboken2/generator/main.cpp
+++ b/sources/shiboken2/generator/main.cpp
@@ -458,6 +458,9 @@ static void parseIncludePathOption(const QString &option, HeaderType headerType,
int main(int argc, char *argv[])
{
+ // PYSIDE-757: Request a deterministic ordering of QHash in the code model
+ // and type system.
+ qSetGlobalQHashSeed(0);
QElapsedTimer timer;
timer.start();
// needed by qxmlpatterns