aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-02 16:26:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-02 16:26:46 -0700
commit16f79a38c4839647314c7f007ea11187954d84c9 (patch)
tree9d56f11a3c1d4cb45d5f42d844b149b96d74625e /emcc
parent25551f7ec802196d7a8caf912aecb71b88d28b2d (diff)
error on linkable modules without asm
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcc b/emcc
index 5049648a..d6ba8d9e 100755
--- a/emcc
+++ b/emcc
@@ -1136,6 +1136,7 @@ try:
if shared.Settings.MAIN_MODULE or shared.Settings.SIDE_MODULE:
assert not memory_init_file, 'memory init file is not supported with module linking'
+ assert shared.Settings.ASM_JS, 'module linking requires asm.js output (-s ASM_JS=1)'
shared.Settings.LINKABLE = 1 # TODO: add FORCE_DCE option for the brave people that do want to dce here and in side modules
debug_level = max(debug_level, 2)