Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compile

Issue 29393564: Noissue - [emscripten] Always process source files in the same order to get reliable builds (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 23, 2017, 2:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compile
===================================================================
--- a/compile
+++ b/compile
@@ -63,17 +63,19 @@ def generate_bindings(env):
def run_compiler(env, debug=False, tracing=False):
params = [
env['PYTHON'], os.path.join(env['EMSCRIPTEN'], 'emcc'),
'-o', COMPILER_OUTPUT,
'--post-js', BINDINGS_OUTPUT,
]
- params.extend(SOURCE_FILES)
+ # Order matters. We sort source files so that we always get the same
sergei 2017/03/23 15:06:15 It looks strange, what is the difference between d
Wladimir Palant 2017/03/24 06:02:13 There is no "correct" order but each order will pr
+ # results for the same source code.
+ params.extend(sorted(SOURCE_FILES))
params.extend('-D' + flag for flag in DEFINES)
for key, value in GENERATION_PARAMS.iteritems():
params.extend(['-s', '{}={}'.format(key, str(value))])
if debug:
params.append('-g1')
if tracing:
params.append('--tracing')
params.extend(ADDITIONAL_PARAMS)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld