Skip to content

Commit

Permalink
actually try different compilers when building optimizer; emscripten-…
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Nov 17, 2014
1 parent c4904a8 commit c21e7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/js_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_optimizer():
errs = []
for compiler in [shared.CLANG, 'g++', 'clang++']: # try our clang first, otherwise hope for a system compiler in the path
shared.logging.debug(' using ' + compiler)
out, err = subprocess.Popen([shared.CLANG, shared.path_from_root('tools', 'optimizer', 'optimizer.cpp'), '-O3', '-std=c++11', '-fno-exceptions', '-fno-rtti', '-o', output], stderr=subprocess.PIPE).communicate()
out, err = subprocess.Popen([compiler, shared.path_from_root('tools', 'optimizer', 'optimizer.cpp'), '-O3', '-std=c++11', '-fno-exceptions', '-fno-rtti', '-o', output], stderr=subprocess.PIPE).communicate()
# for profiling/debugging: '-g', '-fno-omit-frame-pointer'
if os.path.exists(output): return output
errs.append(err)
Expand Down

0 comments on commit c21e7f0

Please sign in to comment.