Skip to content

Commit

Permalink
Fix emcmake script that broke in a regression from #3447 to an error …
Browse files Browse the repository at this point in the history
…of not being able to concatenate str and list.
  • Loading branch information
juj committed May 26, 2015
1 parent 615a04e commit b8411b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions emcmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import os, subprocess, sys
from tools import shared

configure_path = shared.path_from_root('emconfigure')
node_js = shared.NODE_JS
if type(node_js) is list: node_js = ' '.join(node_js)
node_js = node_js.replace('"', '\"')

exit(subprocess.call([shared.PYTHON, configure_path] + \
sys.argv[1] + \
['-DCMAKE_CROSSCOMPILING_EMULATOR=' + shared.NODE_JS] + sys.argv[2:]))
[sys.argv[1]] + \
['-DCMAKE_CROSSCOMPILING_EMULATOR="' + node_js +'"'] + sys.argv[2:]))

0 comments on commit b8411b9

Please sign in to comment.