diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 16:00:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:02 -0700 |
commit | fac77c3ff04c2f228389fd3697239db263f62ab6 (patch) | |
tree | bd3529623087330da0ac84914c8601c8cd034198 /emcc | |
parent | fc397a94391958b13c06762957961f73447dabc9 (diff) |
initial setup
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') |