Register the needed empty placeholder SPIDERMONKEY_ENGINE string before activating the actual spidermonkey engine path, if it exists.

This commit is contained in:
Jukka Jylänki
2014-03-14 13:43:25 +02:00
parent 46130ca30e
commit 351e23df84

4
emsdk
View File

@@ -355,14 +355,14 @@ def generate_dot_emscripten(active_tools):
temp_dir = tempfile.gettempdir().replace('\\', '/')
cfg = 'import os\n'
cfg += "SPIDERMONKEY_ENGINE = ''\n"
for tool in active_tools:
tool_cfg = tool.activated_config()
if tool_cfg:
cfg += tool_cfg + '\n'
cfg += '''SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
cfg += '''V8_ENGINE = ''
TEMP_DIR = ''' + "'" + temp_dir + "'" + '''
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]