| 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) |