diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-10 15:19:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-10 15:19:01 -0800 |
commit | b1f86a1fb9323c9106d5d99a6afc52e1f6a1145e (patch) | |
tree | 882bf8e6307fa277dfda6798fa11ff2c0f77f68e /src | |
parent | 88bb4669368998a3ec86bd24c3b9f3b716475413 (diff) |
export malloc and free by default, many libraries need that
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.js b/src/settings.js index 4ceb3750..b8dbe06e 100644 --- a/src/settings.js +++ b/src/settings.js @@ -148,8 +148,8 @@ var PGO = 0; // Profile-guided optimization. var PROFILE = 0; // Enables runtime profiling. See test_profiling for a usage example. -var EXPORTED_FUNCTIONS = ['_main']; // Functions that are explicitly exported, so they are guaranteed to - // be accessible outside of the generated code. +var EXPORTED_FUNCTIONS = ['_main', '_malloc', '_free']; // Functions that are explicitly exported, so they are guaranteed to + // be accessible outside of the generated code even after running closure compiler. var IGNORED_FUNCTIONS = []; // Functions that we should not generate, neither a stub nor a complete function. // This is useful if your project code includes a function, and you want to replace |