diff --git a/emcmake b/emcmake index 7bea9e8d0e313..e3baef0e88900 100755 --- a/emcmake +++ b/emcmake @@ -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:]))