diff --git a/emcc.py b/emcc.py index d1ac65da5a24..fcaf57b63f3d 100755 --- a/emcc.py +++ b/emcc.py @@ -574,7 +574,7 @@ def is_minus_s_for_emcc(args, i): # 0 - use native compilation for configure checks # 1 - use js when we think it will work # 2 - always use js for configure checks - use_js = int(os.environ.get('EMCONFIGURE_JS', '2')) + use_js = int(os.environ.get('EMCONFIGURE_JS') or 2) if debug_configure: tempout = '/tmp/emscripten_temp/out' diff --git a/tools/ports/sdl2_mixer.py b/tools/ports/sdl2_mixer.py index d313c7e100ff..a5c223071d36 100644 --- a/tools/ports/sdl2_mixer.py +++ b/tools/ports/sdl2_mixer.py @@ -27,8 +27,8 @@ def create(): try: os.chdir(build_dir) os.chmod(configure, os.stat(configure).st_mode | stat.S_IEXEC) - ports.run_commands([[shared.PYTHON, shared.EMCONFIGURE, configure, '--prefix=' + dist_dir] + formatflags + commonflags + ['CFLAGS=-s USE_VORBIS=1']]) - ports.run_commands([[shared.PYTHON, shared.EMMAKE, 'make', 'install']]) + ports.run_commands([[shared.EMCONFIGURE, configure, '--prefix=' + dist_dir] + formatflags + commonflags + ['CFLAGS=-s USE_VORBIS=1']]) + ports.run_commands([[shared.EMMAKE, 'make', 'install']]) shutil.copyfile(out, final) finally: os.chdir(cwd)