aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-04 18:14:18 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-04 18:14:18 -0800
commit91cebac30bd969b32484044ad65f3064d4375047 (patch)
tree2b5540c2c81d154be0ca82a5fa8d35958dee142b /emcc
parent20d84c111a3c80f3348c0c7c9e8a01fc59e3bcfc (diff)
fix bug with not creating proper bitcode output with proper file name when emcc is given -o js
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)