Clean up old leftover code. Fixes https://github.com/kripken/emscripten/issues/1787.
This commit is contained in:
18
emsdk
Executable file → Normal file
18
emsdk
Executable file → Normal file
@@ -337,21 +337,7 @@ def load_dot_emscripten():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def generate_dot_emscripten(active_tools, temp_dir):
|
def generate_dot_emscripten(active_tools, temp_dir):
|
||||||
#EMSCRIPTEN_ROOT = '$emscripten_root'
|
temp_dir = tempfile.gettempdir().replace('\\', '/')
|
||||||
#LLVM_ROOT = '$llvm_root'
|
|
||||||
#PYTHON = '$python'
|
|
||||||
#NODE_JS = '$node_js'
|
|
||||||
template = string.Template(
|
|
||||||
'''import os
|
|
||||||
SPIDERMONKEY_ENGINE = ''
|
|
||||||
V8_ENGINE = ''
|
|
||||||
TEMP_DIR = '$temp_dir'
|
|
||||||
COMPILER_ENGINE = NODE_JS
|
|
||||||
JS_ENGINES = [NODE_JS]
|
|
||||||
''')
|
|
||||||
|
|
||||||
# Make sure we have a working temp directory for the emscripten compiler to use.
|
|
||||||
mkdir_p(sdk_path(temp_dir))
|
|
||||||
|
|
||||||
cfg = 'import os\n'
|
cfg = 'import os\n'
|
||||||
|
|
||||||
@@ -362,7 +348,7 @@ JS_ENGINES = [NODE_JS]
|
|||||||
|
|
||||||
cfg += '''SPIDERMONKEY_ENGINE = ''
|
cfg += '''SPIDERMONKEY_ENGINE = ''
|
||||||
V8_ENGINE = ''
|
V8_ENGINE = ''
|
||||||
TEMP_DIR = ''' + "'" + tempfile.gettempdir().replace('\\', '/') + "'" + '''
|
TEMP_DIR = ''' + "'" + temp_dir + "'" + '''
|
||||||
COMPILER_ENGINE = NODE_JS
|
COMPILER_ENGINE = NODE_JS
|
||||||
JS_ENGINES = [NODE_JS]
|
JS_ENGINES = [NODE_JS]
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user