Skip to content

Commit fc311f3

Browse files
authored
Mark ASYNCIFY_LAZY_LOAD_CODE as deprecated (#24383)
This setting was added as an experiment a long time ago and as far we know has no active users.
1 parent 074e618 commit fc311f3

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ See docs/process.md for more on how version tagging works.
2020

2121
4.0.10 (in development)
2222
----------------------
23+
- The `-sASYNCIFY_LAZY_LOAD_CODE` setting was deprecated. This setting was
24+
added as an experiment a long time ago and as far we know has no active users.
25+
In addition, it cannot work with JSPI (the future of ASYNCIFY). (#24383)
2326

2427
4.0.9 - 05/19/25
2528
----------------

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,8 @@ ASYNCIFY_LAZY_LOAD_CODE
13491349
Allows lazy code loading: where emscripten_lazy_load_code() is written, we
13501350
will pause execution, load the rest of the code, and then resume.
13511351

1352+
.. note:: This setting is deprecated
1353+
13521354
Default value: false
13531355

13541356
.. _asyncify_debug:

src/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ var ASYNCIFY_ADVISE = false;
913913
// Allows lazy code loading: where emscripten_lazy_load_code() is written, we
914914
// will pause execution, load the rest of the code, and then resume.
915915
// [link]
916+
// [deprecated]
916917
var ASYNCIFY_LAZY_LOAD_CODE = false;
917918

918919
// Runtime debug logging from asyncify internals.

test/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8396,7 +8396,7 @@ def test_emscripten_lazy_load_code(self, conditional):
83968396
self.set_setting('ASYNCIFY_LAZY_LOAD_CODE')
83978397
self.set_setting('ASYNCIFY_IGNORE_INDIRECT')
83988398
self.set_setting('MALLOC', 'emmalloc')
8399-
self.emcc_args += ['--profiling-funcs'] # so that we can find the functions for the changes below
8399+
self.emcc_args += ['-Wno-deprecated', '--profiling-funcs'] # so that we can find the functions for the changes below
84008400
if conditional:
84018401
self.emcc_args += ['-DCONDITIONAL']
84028402
self.do_core_test('emscripten_lazy_load_code.c', args=['0'])

tools/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
'LEGALIZE_JS_FFI': 'to disable JS type legalization use `-sWASM_BIGINT` or `-sSTANDALONE_WASM`',
126126
'ASYNCIFY_EXPORTS': 'please use JSPI_EXPORTS instead',
127127
'MAYBE_WASM2JS': 'lack of usage',
128+
'ASYNCIFY_LAZY_LOAD_CODE': 'lack of usage',
128129
}
129130

130131
# Settings that don't need to be externalized when serializing to json because they

0 commit comments

Comments
 (0)