aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-18 18:10:57 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-18 18:10:57 -0800
commitf6be80cbd7bd9e339da7ad5829e98c2f16ee2b1b (patch)
tree1cc8181051d00daa05736213f50fd4c441cbdc49 /emcc
parentdfca41cfde20eb47a38ae83b1d7dd80da669232f (diff)
LINKABLE options, disabling dead code elimination for shared libraries and main files that have things that shared libraries will access through an extern
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 2ad6248c..97ced96e 100755
--- a/emcc
+++ b/emcc
@@ -514,7 +514,7 @@ try:
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), LLVM_INTERNAL_OPT_LEVEL, safe=llvm_opt_level < 2)
else:
# If possible, remove dead functions etc., this potentially saves a lot in the size of the generated code (and the time to compile it)
- if not LEAVE_INPUTS_RAW and not shared.Settings.BUILD_AS_SHARED_LIB:
+ if not LEAVE_INPUTS_RAW and not shared.Settings.BUILD_AS_SHARED_LIB and not shared.Settings.LINKABLE:
if DEBUG: print >> sys.stderr, 'emcc: LLVM dead globals elimination'
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), ['-internalize', '-globaldce'])