summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2018-08-28 20:40:51 +0200
committerBernhard M. Wiedemann <bwiedemann@suse.de>2018-08-29 10:24:07 +0200
commit83b856c0465c40ecd9768508f31d3e337e1a64e1 (patch)
tree77538363418bd2995d6dead0f0c8c709ecac43e2 /SConstruct
parentf3125823268c414e7538d440cffe3c8a95294cad (diff)
BuildSystem: Sort input file lists
so that godot package builds reproducibly in spite of indeterministic filesystem readdir order and http://bugs.python.org/issue30461 See https://reproducible-builds.org/ for why this is good. Sort font input file list, so that builtin_fonts.gen.h is created in a reproducible way Sort list of platforms, so that editor/register_exporters.gen.cpp is created in a reproducible way Sort list of source files, so that .a files and resulting godot binaries are created in a reproducible way
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 2cc486fd1b..3bbe97bfe7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -23,7 +23,7 @@ platform_exporters = []
platform_apis = []
global_defaults = []
-for x in glob.glob("platform/*"):
+for x in sorted(glob.glob("platform/*")):
if (not os.path.isdir(x) or not os.path.exists(x + "/detect.py")):
continue
tmppath = "./" + x