aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-10 17:40:34 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-21 10:47:40 -0800
commit68fa40ad92b6aade0fbf5140fd85c3944046d890 (patch)
treed09239715fcc9e552f90324095dc8754a261ea19 /emcc
parent5d28c31f508e2229bdcfd464c368a6d2830397b7 (diff)
safely internalize in s_x_x tests too
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 06a00006..6b3d8182 100755
--- a/emcc
+++ b/emcc
@@ -1066,7 +1066,7 @@ try:
# At minimum remove dead functions etc., this potentially saves a lot in the size of the generated code (and the time to compile it)
exports = ','.join(map(lambda exp: exp[1:], shared.Settings.EXPORTED_FUNCTIONS))
# internalize carefully, llvm 3.2 will remove even main if not told not to
- link_opts += ['-internalize', '-internalize-public-api-list=' + exports, '-globaldce']
+ link_opts += shared.Building.get_safe_internalize() + ['-globaldce']
if DEBUG: print >> sys.stderr, 'emcc: LLVM linktime:', link_opts
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), link_opts)
if DEBUG: save_intermediate('dce', 'bc')