diff options
-rw-r--r-- | src/jsifier.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 22a230ca..acfb6365 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -491,9 +491,13 @@ function JSify(data, functionsOnly, givenFunctions) { // If this is not linkable, anything not in the library is definitely missing var cancel = false; if (item.ident in DEAD_FUNCTIONS) { - LibraryManager.library[shortident] = new Function("Module['printErr']('dead function: " + shortident + "'); abort(-1);"); - delete LibraryManager.library[shortident + '__inline']; - delete LibraryManager.library[shortident + '__deps']; + if (LibraryManager.library[shortident + '__asm']) { + warn('cannot kill asm library function ' + item.ident); + } else { + LibraryManager.library[shortident] = new Function("Module['printErr']('dead function: " + shortident + "'); abort(-1);"); + delete LibraryManager.library[shortident + '__inline']; + delete LibraryManager.library[shortident + '__deps']; + } } if (!LINKABLE && !LibraryManager.library.hasOwnProperty(shortident) && !LibraryManager.library.hasOwnProperty(shortident + '__inline')) { if (ERROR_ON_UNDEFINED_SYMBOLS) error('unresolved symbol: ' + shortident); |