aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-04-11 10:39:31 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-04-11 10:42:18 +0300
commit69c67542e76bcbc37563399eb3ab8716c6a37774 (patch)
tree39c5891a02caacb4b7bcd0a4a5b0ba099d1b86ba /emcc
parent5351b86b0768813c4c18bb61494c43b07bc00372 (diff)
Remove the unwanted abstraction that callee is allowed to autodelete a response file after consuming it. Instead, manually track and delete response files by the caller and clean them up.
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index bcd703fd..17b8e6e8 100755
--- a/emcc
+++ b/emcc
@@ -79,7 +79,7 @@ import os, sys, shutil, tempfile, subprocess, shlex, time, re
from subprocess import PIPE, STDOUT
from tools import shared
from tools.shared import Compression, execute, suffix, unsuffixed, unsuffixed_basename
-from tools.response_file import read_and_delete_response_file
+from tools.response_file import read_response_file
# Mapping of emcc opt levels to llvm opt levels. We use llvm opt level 3 in emcc opt
# levels 2 and 3 (emcc 3 is unsafe opts, so unsuitable for the only level to get
@@ -131,7 +131,7 @@ while response_file:
if sys.argv[index][0] == '@':
# found one, loop again next time
response_file = True
- extra_args = read_and_delete_response_file(sys.argv[index])
+ extra_args = read_response_file(sys.argv[index])
# slice in extra_args in place of the response file arg
sys.argv[index:index+1] = extra_args
break