aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index f60cc114..6bb209a5 100755
--- a/emcc
+++ b/emcc
@@ -360,7 +360,10 @@ try:
assert has_source_inputs, 'Must have source code inputs to use -c'
target = target_basename + '.o'
- final_suffix = target.split('.')[-1]
+ if '.' in target:
+ final_suffix = target.split('.')[-1]
+ else:
+ final_suffix = ''
# Apply optimization level settings
shared.Settings.apply_opt_level(opt_level, noisy=True)