Skip to content

Commit 325b7d2

Browse files
authored
Remove support for 3 deprecated settings (#23975)
This change marks these settings and legacy and removes the associated code: - SUPPORT_ERRNO - EXTRA_EXPORTED_RUNTIME_METHODS - DEMANGLE_SUPPORT These settings have been marked as deprecated for over a year now since the system for settings deprecation was added in #21355.
1 parent 1296638 commit 325b7d2

15 files changed

+21
-139
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ See docs/process.md for more on how version tagging works.
2626
using `-gsource-map=inline`. (#23741)
2727
- The python `__file__` builtin now works in the emscripten config file.
2828
(#23973)
29+
- Three deprecated settings were removed. These settings were marked as
30+
deprecated for more than year:
31+
- SUPPORT_ERRNO: Instead, export `__errno_location` if needed.
32+
- EXTRA_EXPORTED_RUNTIME_METHODS: Instead use EXPORTED_RUNTIME_METHODS.
33+
- DEMANGLE_SUPPORT: Instead use the `$demangle` JS libary function.
34+
(#23975)
2935

3036
4.0.5 - 03/12/25
3137
----------------

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -482,17 +482,6 @@ Print out exceptions in emscriptened code.
482482

483483
Default value: false
484484

485-
.. _demangle_support:
486-
487-
DEMANGLE_SUPPORT
488-
================
489-
490-
If 1, export `demangle` and `stackTrace` JS library functions.
491-
492-
.. note:: This setting is deprecated
493-
494-
Default value: false
495-
496485
.. _library_debug:
497486

498487
LIBRARY_DEBUG
@@ -1442,17 +1431,6 @@ having "FS" in this list.
14421431

14431432
Default value: []
14441433

1445-
.. _extra_exported_runtime_methods:
1446-
1447-
EXTRA_EXPORTED_RUNTIME_METHODS
1448-
==============================
1449-
1450-
Deprecated, use EXPORTED_RUNTIME_METHODS instead.
1451-
1452-
.. note:: This setting is deprecated
1453-
1454-
Default value: []
1455-
14561434
.. _incoming_module_js_api:
14571435

14581436
INCOMING_MODULE_JS_API
@@ -2951,18 +2929,6 @@ feature_matrix.py).
29512929

29522930
Default value: 160000
29532931

2954-
.. _support_errno:
2955-
2956-
SUPPORT_ERRNO
2957-
=============
2958-
2959-
Whether we support setting errno from JS library code.
2960-
In MINIMAL_RUNTIME builds, this option defaults to 0.
2961-
2962-
.. note:: This setting is deprecated
2963-
2964-
Default value: true
2965-
29662932
.. _minimal_runtime:
29672933

29682934
MINIMAL_RUNTIME

src/lib/liblegacy.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,6 @@ legacyFuncs = {
7676
$allocateUTF8: '$stringToNewUTF8',
7777
$allocateUTF8OnStack: '$stringToUTF8OnStack',
7878

79-
#if SUPPORT_ERRNO
80-
$setErrNo__deps: ['__errno_location'],
81-
$setErrNo: (value) => {
82-
{{{makeSetValue("___errno_location()", 0, 'value', 'i32') }}};
83-
return value;
84-
},
85-
#else
86-
$setErrNo: (value) => {
87-
#if ASSERTIONS
88-
err('failed to set errno from JS');
89-
#endif
90-
return 0;
91-
},
92-
#endif
93-
9479
#if LINK_AS_CXX
9580
$demangle__deps: ['$withStackSave', '__cxa_demangle', 'free', '$stringToUTF8OnStack'],
9681
$demangle: (func) => {

src/settings.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,6 @@ var EMULATE_FUNCTION_POINTER_CASTS = false;
351351
// [link]
352352
var EXCEPTION_DEBUG = false;
353353

354-
// If 1, export `demangle` and `stackTrace` JS library functions.
355-
// [link]
356-
// [deprecated]
357-
var DEMANGLE_SUPPORT = false;
358-
359354
// Print out when we enter a library call (library*.js). You can also unset
360355
// runtimeDebug at runtime for logging to cease, and can set it when you want
361356
// it back. A simple way to set it in C++ is::
@@ -970,10 +965,6 @@ var JSPI_IMPORTS = [];
970965
// [link]
971966
var EXPORTED_RUNTIME_METHODS = [];
972967

973-
// Deprecated, use EXPORTED_RUNTIME_METHODS instead.
974-
// [deprecated]
975-
var EXTRA_EXPORTED_RUNTIME_METHODS = [];
976-
977968
// A list of incoming values on the Module object in JS that we care about. If
978969
// a value is not in this list, then we don't emit code to check if you provide
979970
// it on the Module object. For example, if
@@ -1928,12 +1919,6 @@ var MIN_CHROME_VERSION = 85;
19281919
// feature_matrix.py).
19291920
var MIN_NODE_VERSION = 160000;
19301921

1931-
// Whether we support setting errno from JS library code.
1932-
// In MINIMAL_RUNTIME builds, this option defaults to 0.
1933-
// [link]
1934-
// [deprecated]
1935-
var SUPPORT_ERRNO = true;
1936-
19371922
// If true, uses minimal sized runtime without POSIX features, Module,
19381923
// preRun/preInit/etc., Emscripten built-in XHR loading or library_browser.js.
19391924
// Enable this setting to target the smallest code size possible. Set
@@ -2285,4 +2270,7 @@ var LEGACY_SETTINGS = [
22852270
['WORKAROUND_OLD_WEBGL_UNIFORM_UPLOAD_IGNORED_OFFSET_BUG', [0], 'No longer supported'],
22862271
['AUTO_ARCHIVE_INDEXES', [0, 1], 'No longer needed'],
22872272
['USE_ES6_IMPORT_META', [1], 'Disabling is no longer supported'],
2273+
['EXTRA_EXPORTED_RUNTIME_METHODS', [[]], 'No longer supported, use EXPORTED_RUNTIME_METHODS'],
2274+
['SUPPORT_ERRNO', [0], 'No longer supported'],
2275+
['DEMANGLE_SUPPORT', [0], 'No longer supported'],
22882276
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9244
1+
9277
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23720
1+
23834
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7984
1+
7977
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21327
1+
21318

test/other/test_support_errno.c

Lines changed: 0 additions & 21 deletions
This file was deleted.

test/other/test_support_errno.out

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)