diff options
| author | Alon Zakai <alonzakai@gmail.com> | 2013-05-24 14:01:30 -0700 | 
|---|---|---|
| committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-24 14:01:30 -0700 | 
| commit | c5732b99a69d611d3fb7fa9cd94ebb9b1f2497a5 (patch) | |
| tree | fedfb16dbf333b8b4af9493fbd04e1a9ac9fb0b9 /src | |
| parent | 5f76d8e64efef639e483d15cc729075e942ca234 (diff) | |
auto-export malloc, needed by file packager
Diffstat (limited to 'src')
| -rw-r--r-- | src/settings.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/settings.js b/src/settings.js index d3abb06e..c156a40c 100644 --- a/src/settings.js +++ b/src/settings.js @@ -238,7 +238,8 @@ var NAMED_GLOBALS = 0; // If 1, we use global variables for globals. Otherwise                         // they are referred to by a base plus an offset (called an indexed global),                         // saving global variables but adding runtime overhead. -var EXPORTED_FUNCTIONS = ['_main']; // Functions that are explicitly exported. These functions are kept alive +var EXPORTED_FUNCTIONS = ['_main', '_malloc']; +                                    // Functions that are explicitly exported. These functions are kept alive                                      // through LLVM dead code elimination, and also made accessible outside of                                      // the generated code even after running closure compiler (on "Module").                                      // Note the necessary prefix of "_". | 
