Skip to content

Commit f1b8f8f

Browse files
committed
only save temp files in EMCC_DEBUG_SAVE mode
1 parent 587a1b3 commit f1b8f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ def get(self, suffix):
404404
return named_file
405405

406406
def clean(self):
407-
if DEBUG:
408-
print >> sys.stderr, 'not cleaning up temp files since in debug mode, see them in %s' % EMSCRIPTEN_TEMP_DIR
407+
if os.environ.get('EMCC_DEBUG_SAVE'):
408+
print >> sys.stderr, 'not cleaning up temp files since in debug-save mode, see them in %s' % EMSCRIPTEN_TEMP_DIR
409409
return
410410
for filename in self.to_clean:
411411
try_delete(filename)

0 commit comments

Comments
 (0)