diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index 6b263fbd..69a2877b 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -404,8 +404,8 @@ class TempFiles: return named_file def clean(self): - if DEBUG: - print >> sys.stderr, 'not cleaning up temp files since in debug mode, see them in %s' % EMSCRIPTEN_TEMP_DIR + if os.environ.get('EMCC_DEBUG_SAVE'): + print >> sys.stderr, 'not cleaning up temp files since in debug-save mode, see them in %s' % EMSCRIPTEN_TEMP_DIR return for filename in self.to_clean: try_delete(filename) |