aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-14 15:31:56 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-14 15:31:56 -0800
commit284a433e94aa4ff93f2ad2415405a84324204b03 (patch)
treed4bc528b1fcc8c85f423f92ed65edb6664604de5 /src/compiler.js
parenta86056437ae71c77ce2a2b5a3447c293c199ef2a (diff)
must have named globals in shared libs
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 7ca20c40..ecfd506e 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -176,6 +176,7 @@ if (ASM_JS) {
assert(!ALLOW_MEMORY_GROWTH, 'Cannot grow asm.js heap');
assert((TOTAL_MEMORY&(TOTAL_MEMORY-1)) == 0, 'asm.js heap must be power of 2');
}
+assert(!(!NAMED_GLOBALS && BUILD_AS_SHARED_LIB)); // shared libraries must have named globals
// Output some info and warnings based on settings