diff options
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r-- | src/binaryen-c.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 4dd306bd3..33281ff82 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -2601,4 +2601,12 @@ BinaryenFunctionTypeRef BinaryenGetFunctionTypeBySignature(BinaryenModuleRef mod return NULL; } +#ifdef __EMSCRIPTEN__ +// Override atexit - we don't need any global ctors to actually run, and +// otherwise we get clutter in the output in debug builds +int atexit(void (*function)(void)) { + return 0; +} +#endif + } // extern "C" |