You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exit_with_error('Explictly setting EXIT_RUNTIME not compatible with STANDALONE_WASM. EXIT_RUNTIME will always be True for programs (with a main function) and False for reactors (not main function).')
1895
1895
settings.EXIT_RUNTIME=settings.EXPECT_MAIN
1896
+
settings.IGNORE_MISSING_MAIN=0
1897
+
# the wasm must be runnable without the JS, so there cannot be anything that
1898
+
# requires JS legalization
1899
+
settings.LEGALIZE_JS_FFI=0
1900
+
if'MEMORY_GROWTH_LINEAR_STEP'inuser_settings:
1901
+
exit_with_error('MEMORY_GROWTH_LINEAR_STEP is not compatible with STANDALONE_WASM')
1902
+
if'MEMORY_GROWTH_GEOMETRIC_CAP'inuser_settings:
1903
+
exit_with_error('MEMORY_GROWTH_GEOMETRIC_CAP is not compatible with STANDALONE_WASM')
1904
+
ifsettings.MINIMAL_RUNTIME:
1905
+
exit_with_error('MINIMAL_RUNTIME reduces JS size, and is incompatible with STANDALONE_WASM which focuses on ignoring JS anyhow and being 100% wasm')
exit_with_error(f'Due to collision in variable name "Module", the shell file "{options.shell_path}" is not compatible with build options "-sMODULARIZE -sEXPORT_NAME=Module". Either provide your own shell file, change the name of the export to something else to avoid the name collision. (see https://github.com/emscripten-core/emscripten/issues/7950 for details)')
2463
2466
2464
-
ifsettings.STANDALONE_WASM:
2465
-
ifsettings.MINIMAL_RUNTIME:
2466
-
exit_with_error('MINIMAL_RUNTIME reduces JS size, and is incompatible with STANDALONE_WASM which focuses on ignoring JS anyhow and being 100% wasm')
2467
-
# the wasm must be runnable without the JS, so there cannot be anything that
2468
-
# requires JS legalization
2469
-
settings.LEGALIZE_JS_FFI=0
2470
-
2471
2467
# TODO(sbc): Remove WASM2JS here once the size regression it would introduce has been fixed.
self.assertContained('error: MINIMAL_RUNTIME reduces JS size, and is incompatible with STANDALONE_WASM which focuses on ignoring JS anyhow and being 100% wasm', err)
0 commit comments