diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-07 11:06:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-07 11:06:28 -0700 |
commit | 50f60cb3b566dae6628a0b2cfeb8be8967938008 (patch) | |
tree | 06436ac9722d83ad85909ad473b8f50e1557303c | |
parent | caf93e9b5602bb8bec0e3822df8a6f0210acc4f2 (diff) |
keep free() alive like malloc()
-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 e2508fc4..46245fd1 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1105,6 +1105,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e 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] |