diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-02 12:11:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:05 -0700 |
commit | 4a907afae04289b7c22536a429f0e5adfdb39349 (patch) | |
tree | 05969695e7820e325c9731a5a8d4e76bcebe1089 /tools | |
parent | fa5cc31c396c0a46e6706b4df68e0b63aaae1d74 (diff) |
always do globaldce (and potentially strip-debug), even when we are building something linkable
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 1 |
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)) |