|
39 | 39 | from .utils import unsuffixed, unsuffixed_basename, get_file_suffix |
40 | 40 | from .shared import in_temp, do_replace |
41 | 41 | from .shared import DEBUG, WINDOWS, DYLIB_EXTENSIONS |
42 | | -from .settings import settings, default_setting, user_settings, JS_ONLY_SETTINGS, DEPRECATED_SETTINGS |
| 42 | +from .settings import settings, default_setting, user_settings |
| 43 | +from .settings import JS_ONLY_SETTINGS, DEPRECATED_SETTINGS, INCOMPATIBLE_SETTINGS |
43 | 44 | from .minimal_runtime_shell import generate_minimal_runtime_html |
44 | 45 |
|
45 | 46 | logger = logging.getLogger('link') |
@@ -653,35 +654,7 @@ def add_system_js_lib(lib): |
653 | 654 |
|
654 | 655 |
|
655 | 656 | def report_incompatible_settings(): |
656 | | - # List of incompatible settings, of the form (SETTINGS_A, SETTING_B, OPTIONAL_REASON_FOR_INCOMPAT) |
657 | | - incompatible_settings = [ |
658 | | - ('MINIMAL_RUNTIME', 'RELOCATABLE', None), |
659 | | - ('WASM2JS', 'RELOCATABLE', None), |
660 | | - ('MODULARIZE', 'PROXY_TO_WORKER', 'if you want to run in a worker with -sMODULARIZE, you likely want to do the worker side setup manually'), |
661 | | - ('MODULARIZE', 'NO_DECLARE_ASM_MODULE_EXPORTS', None), |
662 | | - ('EVAL_CTORS', 'WASM2JS', None), |
663 | | - ('EVAL_CTORS', 'RELOCATABLE', 'movable segments'), |
664 | | - # In Asyncify exports can be called more than once, and this seems to not |
665 | | - # work properly yet (see test_emscripten_scan_registers). |
666 | | - ('EVAL_CTORS', 'ASYNCIFY', None), |
667 | | - ('PTHREADS_PROFILING', 'NO_ASSERTIONS', 'only works with ASSERTIONS enabled'), |
668 | | - ('SOURCE_PHASE_IMPORTS', 'NO_EXPORT_ES6', None), |
669 | | - ('STANDALONE_WASM', 'MINIMAL_RUNTIME', None), |
670 | | - ('STRICT_JS', 'MODULARIZE', None), |
671 | | - ('STRICT_JS', 'EXPORT_ES6', None), |
672 | | - ('MINIMAL_RUNTIME_STREAMING_WASM_COMPILATION', 'MINIMAL_RUNTIME_STREAMING_WASM_INSTANTIATION', 'they are mutually exclusive'), |
673 | | - ('MINIMAL_RUNTIME_STREAMING_WASM_COMPILATION', 'SINGLE_FILE', None), |
674 | | - ('MINIMAL_RUNTIME_STREAMING_WASM_INSTANTIATION', 'SINGLE_FILE', None), |
675 | | - ('SEPARATE_DWARF', 'WASM2JS', 'as there is no wasm file'), |
676 | | - ('GL_SUPPORT_AUTOMATIC_ENABLE_EXTENSIONS', 'NO_GL_SUPPORT_SIMPLE_ENABLE_EXTENSIONS', None), |
677 | | - ('MODULARIZE', 'NODEJS_CATCH_REJECTION', None), |
678 | | - ('MODULARIZE', 'NODEJS_CATCH_EXIT', None), |
679 | | - ('LEGACY_VM_SUPPORT', 'MEMORY64', None), |
680 | | - ('CROSS_ORIGIN', 'NO_DYNAMIC_EXECUTION', None), |
681 | | - ('CROSS_ORIGIN', 'NO_PTHREADS', None), |
682 | | - ] |
683 | | - |
684 | | - for a, b, reason in incompatible_settings: |
| 657 | + for a, b, reason in INCOMPATIBLE_SETTINGS: |
685 | 658 | invert_b = b.startswith('NO_') |
686 | 659 | if invert_b: |
687 | 660 | b = b[3:] |
|
0 commit comments