diff options
author | Chad Austin <chad@imvu.com> | 2013-01-29 12:43:37 -0800 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2013-03-04 19:06:20 -0800 |
commit | bd4bc7050b70b71d035327199a18a8e0725d7f1d (patch) | |
tree | ca37a42256c57903837cc8a2a3f5553598f43665 /tools/shared.py | |
parent | eff17663bc9460f1f760eaeb9be04450347eba1e (diff) |
allow cwd-relative paths when passing --compiler to emscripten.py
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index 585b2af2..7005dee4 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -497,9 +497,16 @@ def timeout_run(proc, timeout, note='unnamed process', full_output=False): def run_js(filename, engine=None, args=[], check_timeout=False, stdout=PIPE, stderr=None, cwd=None, full_output=False): if engine is None: engine = JS_ENGINES[0] engine = listify(engine) - #if not WINDOWS: 'd8' in engine[0] or 'node' in engine[0]: engine += ['--stack_size=8192'] # needed for some big projects command = engine + [filename] + (['--'] if 'd8' in engine[0] else []) + args - return timeout_run(Popen(command, stdout=stdout, stderr=stderr, cwd=cwd), 15*60 if check_timeout else None, 'Execution', full_output=full_output) + return timeout_run( + Popen( + command, + stdout=stdout, + stderr=stderr, + cwd=cwd), + 15*60 if check_timeout else None, + 'Execution', + full_output=full_output) def to_cc(cxx): # By default, LLVM_GCC and CLANG are really the C++ versions. This gets an explicit C version |