aboutsummaryrefslogtreecommitdiff
path: root/emar
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-16 21:55:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-16 21:55:39 -0800
commit3c17526474d054acb9aa616d5af95103f040b2d2 (patch)
tree9ba00fff8d14d6943e891b35e951814f15680210 /emar
parent7bb863e24d5242cb9f31be0e7946e323a80d793a (diff)
make emcc and emar more robust against odd makefile inputs
Diffstat (limited to 'emar')
-rwxr-xr-xemar3
1 files changed, 2 insertions, 1 deletions
diff --git a/emar b/emar
index 5a627993..312bd4a4 100755
--- a/emar
+++ b/emar
@@ -17,5 +17,6 @@ newargs = [shared.EMLD] + sys.argv[3:] + ['-o='+sys.argv[2]]
if DEBUG:
print >> sys.stderr, 'emar:', sys.argv, ' ==> ', newargs
-os.execvp(shared.EMLD, newargs)
+if len(newargs) > 2:
+ os.execvp(shared.EMLD, newargs)