diff options
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1066,6 +1066,16 @@ try: logging.warning('disabling LLVM optimizations, need typed arrays mode 2 for them') llvm_opts = 0 + if shared.Settings.MAIN_MODULE: + assert not shared.Settings.SIDE_MODULE + shared.Settings.INCLUDE_FULL_LIBRARY = 1 + shared.Settings.LINKABLE = 1 # TODO: add FORCE_DCE option for the brave people that do want to dce here and in side modules + debug_level = max(debug_level, 2) # preserve function names + elif shared.Settings.SIDE_MODULE: + assert not shared.Settings.MAIN_MODULE + shared.Settings.LINKABLE = 1 + debug_level = max(debug_level, 2) + ## Compile source code to bitcode logging.debug('compiling to bitcode') |