diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-20 14:13:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-20 14:13:43 -0700 |
commit | d9e13a5a3ceeaa500e9c75e52547c8b67950c441 (patch) | |
tree | 986b6af442e8c503bedab9912e8913dbd129d2e1 /emcc | |
parent | afa818a5cbc78bb862f0cae8b305c8033a5b0fc3 (diff) | |
parent | 83c6675368ce14ee34b52147792b1073a074ed24 (diff) |
Merge branch 'incoming'
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -110,7 +110,7 @@ if DEBUG and LEAVE_INPUTS_RAW: print >> sys.stderr, 'emcc: leaving inputs raw' stdout = PIPE if not DEBUG else None # suppress output of child processes stderr = PIPE if not DEBUG else None # unless we are in DEBUG mode -shared.check_sanity() +shared.check_sanity(force=DEBUG) # Handle some global flags @@ -414,7 +414,10 @@ if TEMP_DIR: shutil.rmtree(temp_dir) # clear it os.makedirs(temp_dir) else: - temp_dir = tempfile.mkdtemp() + temp_root = os.path.join(shared.TEMP_DIR, 'emcc') + if not os.path.exists(temp_root): + os.makedirs(temp_root) + temp_dir = tempfile.mkdtemp(dir=temp_root) def in_temp(name): return os.path.join(temp_dir, os.path.basename(name)) |