|
38 | 38 | from .shared import in_temp, safe_copy, do_replace, OFormat |
39 | 39 | from .shared import DEBUG, WINDOWS, DYNAMICLIB_ENDINGS, STATICLIB_ENDINGS |
40 | 40 | from .shared import unsuffixed, unsuffixed_basename, get_file_suffix |
41 | | -from .settings import settings, default_setting, user_settings, JS_ONLY_SETTINGS |
| 41 | +from .settings import settings, default_setting, user_settings, JS_ONLY_SETTINGS, DEPRECATED_SETTINGS |
42 | 42 | from .minimal_runtime_shell import generate_minimal_runtime_html |
43 | 43 |
|
44 | 44 | import tools.line_endings |
@@ -698,14 +698,11 @@ def phase_linker_setup(options, state, newargs): |
698 | 698 |
|
699 | 699 | final_suffix = get_file_suffix(target) |
700 | 700 |
|
701 | | - if 'SUPPORT_ERRNO' in user_settings: |
702 | | - diagnostics.warning('deprecated', 'SUPPORT_ERRNO is deprecated since emscripten no longer uses the setErrNo library function') |
703 | | - |
704 | | - if 'DEMANGLE_SUPPORT' in user_settings: |
705 | | - diagnostics.warning('deprecated', 'DEMANGLE_SUPPORT is deprecated since mangled names no longer appear in stack traces') |
| 701 | + for s, reason in DEPRECATED_SETTINGS.items(): |
| 702 | + if s in user_settings: |
| 703 | + diagnostics.warning('deprecated', f'{s} is deprecated ({reason}). Please open a bug if you have a continuing need for this setting') |
706 | 704 |
|
707 | 705 | if settings.EXTRA_EXPORTED_RUNTIME_METHODS: |
708 | | - diagnostics.warning('deprecated', 'EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead') |
709 | 706 | settings.EXPORTED_RUNTIME_METHODS += settings.EXTRA_EXPORTED_RUNTIME_METHODS |
710 | 707 |
|
711 | 708 | # If no output format was specified we try to deduce the format based on |
|
0 commit comments