Skip to content

Commit bda6a0c

Browse files
authored
Remove the use of a custom temp directory. That is a bad practice, we should reuse system temp directory instead, that is what it is there for. (#791)
1 parent f03f1dc commit bda6a0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

emsdk.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,9 +1604,6 @@ def load_dot_emscripten():
16041604

16051605

16061606
def generate_dot_emscripten(active_tools):
1607-
temp_dir = sdk_path('tmp')
1608-
mkdir_p(temp_dir)
1609-
16101607
cfg = 'import os\n'
16111608
cfg += "emsdk_path = os.path.dirname(os.environ.get('EM_CONFIG')).replace('\\\\', '/')\n"
16121609

@@ -1627,10 +1624,9 @@ def generate_dot_emscripten(active_tools):
16271624
cfg += name + " = '" + value + "'\n"
16281625

16291626
cfg += '''\
1630-
TEMP_DIR = '%s'
16311627
COMPILER_ENGINE = NODE_JS
16321628
JS_ENGINES = [NODE_JS]
1633-
''' % temp_dir
1629+
'''
16341630

16351631
cfg = cfg.replace("'" + emsdk_path(), "emsdk_path + '")
16361632

0 commit comments

Comments
 (0)