aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-02 12:11:50 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:05 -0700
commit4a907afae04289b7c22536a429f0e5adfdb39349 (patch)
tree05969695e7820e325c9731a5a8d4e76bcebe1089 /tools
parentfa5cc31c396c0a46e6706b4df68e0b63aaae1d74 (diff)
always do globaldce (and potentially strip-debug), even when we are building something linkable
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 42dc3d76..c5f53474 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1101,6 +1101,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
@staticmethod
def get_safe_internalize():
+ if not Building.can_build_standalone(): return [] # do not internalize anything
exps = expand_response(Settings.EXPORTED_FUNCTIONS)
if '_malloc' not in exps: exps.append('_malloc') # needed internally, even if user did not add to EXPORTED_FUNCTIONS
exports = ','.join(map(lambda exp: exp[1:], exps))