aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/emcc b/emcc
index a0f59f0b..460f0b79 100755
--- a/emcc
+++ b/emcc
@@ -82,6 +82,8 @@ TEMP_DIR = os.environ.get('EMCC_TEMP_DIR')
if DEBUG: print >> sys.stderr, 'emcc: ', ' '.join(sys.argv)
+shared.check_sanity()
+
# Handle some global flags
if len(sys.argv) == 1:
@@ -281,6 +283,9 @@ try:
if llvm_opt_level is None: llvm_opt_level = 1 if opt_level >= 1 else 0
if closure is None: closure = 1 if opt_level >= 2 else 0
+ if closure:
+ assert os.path.exists(shared.CLOSURE_COMPILER), 'emcc: fatal: Closure compiler (%s) does not exist' % CLOSURE_COMPILER
+
settings_changes = []
for i in range(len(newargs)):
if newargs[i] == '-s':