summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-27 11:36:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-27 11:36:57 -0700
commitcad88b317c1ffbbc397b86ca4b65cb837c9c9ea7 (patch)
tree7d5ecc0bd34a122176350055a888bcdb7577e80b
parentd46e9600bcf9416d37a2b4189ca5dd3d0546bf54 (diff)
proper error message for linkable modules not supported in fastcomp
-rwxr-xr-xemcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcc b/emcc
index ae9423cd..342af478 100755
--- a/emcc
+++ b/emcc
@@ -1272,6 +1272,7 @@ try:
assert shared.Settings.INIT_HEAP == 0, 'HEAP_INIT is not supported in fastcomp (and should never be needed except for debugging)'
assert not shared.Settings.RUNTIME_TYPE_INFO, 'RUNTIME_TYPE_INFO is not supported in fastcomp'
assert not shared.Settings.CORRUPTION_CHECK, 'CORRUPTION_CHECK is not supported in asm.js mode, which is what fastcomp can emit (you can use non-asm.js mode in non-fastcomp)'
+ assert not shared.Settings.MAIN_MODULE and not shared.Settings.SIDE_MODULE, 'Linking modules is not supported in fastcomp'
except Exception, e:
logging.error('Compiler settings are incompatible with fastcomp. You can fall back to the older compiler core, although that is not recommended, see https://github.com/kripken/emscripten/wiki/LLVM-Backend')
raise e