diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-18 18:10:57 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-18 18:10:57 -0800 |
commit | f6be80cbd7bd9e339da7ad5829e98c2f16ee2b1b (patch) | |
tree | 1cc8181051d00daa05736213f50fd4c441cbdc49 /emcc | |
parent | dfca41cfde20eb47a38ae83b1d7dd80da669232f (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-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) |