aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-01 17:47:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:31 -0700
commit8fffbc9202a0d66d65b052d84b4b61d86d398cce (patch)
tree6a5ca87d4bb6cedd8958b341243407e15f5a1c89 /tools/shared.py
parent35386a61513fe7c9f49eefb7075f0c4dc7953e81 (diff)
always keep malloc and free alive and exported, for internal use and other modules
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 786d8d71..774d95fe 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1179,8 +1179,6 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
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
- if '_free' not in exps: exps.append('_free')
exports = ','.join(map(lambda exp: exp[1:], exps))
# internalize carefully, llvm 3.2 will remove even main if not told not to
return ['-internalize', '-internalize-public-api-list=' + exports]