Skip to content

Commit

Permalink
Fix Windows EMCC invocations to call 'python emcc' in a few places in…
Browse files Browse the repository at this point in the history
…stead of just 'emcc'.
  • Loading branch information
juj committed Feb 19, 2014
1 parent 68935be commit f13a1ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/fuzz/creduce_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
print '4) Compile JS-ly and compare'

def try_js(args):
shared.check_execute([shared.EMCC] + EMCC_ARGS + CSMITH_CFLAGS + args +
shared.check_execute([shared.PYTHON, shared.EMCC] + EMCC_ARGS + CSMITH_CFLAGS + args +
[filename, '-o', js_filename])
js = shared.run_js(js_filename, stderr=PIPE, engine=ENGINE)
assert correct == js
Expand Down
2 changes: 1 addition & 1 deletion tests/fuzz/csmith_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
def try_js(args):
shared.try_delete(filename + '.js')
print '(compile)'
shared.check_execute([shared.EMCC, opts, fullname, '-o', filename + '.js'] + CSMITH_CFLAGS + args)
shared.check_execute([shared.PYTHON, shared.EMCC, opts, fullname, '-o', filename + '.js'] + CSMITH_CFLAGS + args)
assert os.path.exists(filename + '.js')
print '(run)'
js = shared.run_js(filename + '.js', stderr=PIPE, engine=engine1, check_timeout=True)
Expand Down
10 changes: 5 additions & 5 deletions tests/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from tools.shared import *

SANITY_FILE = CONFIG_FILE + '_sanity'
commands = [[EMCC], [PYTHON, path_from_root('tests', 'runner.py'), 'blahblah']]
commands = [[PYTHON, EMCC], [PYTHON, path_from_root('tests', 'runner.py'), 'blahblah']]

def restore():
shutil.copyfile(CONFIG_FILE + '_backup', CONFIG_FILE)
Expand Down Expand Up @@ -421,12 +421,12 @@ def test_emcc_caching(self):
restore()

def ensure_cache():
self.do([EMCC, '-O2', path_from_root('tests', 'hello_world.c')])
self.do([PYTHON, EMCC, '-O2', path_from_root('tests', 'hello_world.c')])

# Manual cache clearing
ensure_cache()
assert os.path.exists(EMCC_CACHE)
output = self.do([EMCC, '--clear-cache'])
output = self.do([PYTHON, EMCC, '--clear-cache'])
assert ERASING_MESSAGE in output
assert not os.path.exists(EMCC_CACHE)

Expand All @@ -436,7 +436,7 @@ def ensure_cache():
try:
os.environ['LLVM'] = 'waka'
assert os.path.exists(EMCC_CACHE)
output = self.do([EMCC])
output = self.do([PYTHON, EMCC])
assert ERASING_MESSAGE in output
assert not os.path.exists(EMCC_CACHE)
finally:
Expand Down Expand Up @@ -594,7 +594,7 @@ def test_emconfig(self):
temp_dir = tempfile.mkdtemp(prefix='emscripten_temp_')

os.chdir(temp_dir)
self.do([EMCC, '-O2', '--em-config', custom_config_filename, path_from_root('tests', 'hello_world.c')])
self.do([PYTHON, EMCC, '-O2', '--em-config', custom_config_filename, path_from_root('tests', 'hello_world.c')])
result = run_js('a.out.js')

# Clean up created temp files.
Expand Down
2 changes: 1 addition & 1 deletion tools/make_minigzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

print 'Building minigzip'

Popen(['python2', shared.EMCC, '-O2', shared.path_from_root('tests', 'zlib', 'minigzip.c'), zlib, '-o', shared.path_from_root('tools', 'minigzip.js')]).communicate()
Popen([shared.PYTHON, shared.EMCC, '-O2', shared.path_from_root('tests', 'zlib', 'minigzip.c'), zlib, '-o', shared.path_from_root('tools', 'minigzip.js')]).communicate()

0 comments on commit f13a1ea

Please sign in to comment.