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
This data structure makes more sense alongside all the other lists in
this file like `COMPILE_TIME_SETTINGS` and `DEPRECATED_SETTINGS`.
One of the main reasons for having `LEGACY_SETTINGS` in settings.js was
that it was visible for those directly browsing the `.js` file. However,
we now have an auto-generated `.rst` file that is the more common way
for folks to read about settings.
See https://emscripten.org/docs/tools_reference/settings_reference.html
I updated this auto-generated document to contain this info.
- ``UNALIGNED_MEMORY``: forced unaligned memory not supported in fastcomp (Valid values: [0])
3389
+
- ``FORCE_ALIGNED_MEMORY``: forced aligned memory is not supported in fastcomp (Valid values: [0])
3390
+
- ``PGO``: pgo no longer supported (Valid values: [0])
3391
+
- ``QUANTUM_SIZE``: altering the QUANTUM_SIZE is not supported (Valid values: [4])
3392
+
- ``FUNCTION_POINTER_ALIGNMENT``: Starting from Emscripten 1.37.29, no longer available (https://github.com/emscripten-core/emscripten/pull/6091) (Valid values: [2])
- ``BUILD_AS_SHARED_LIB``: Starting from Emscripten 1.38.16, no longer available (https://github.com/emscripten-core/emscripten/pull/7433) (Valid values: [0])
3395
+
- ``SAFE_SPLIT_MEMORY``: Starting from Emscripten 1.38.19, SAFE_SPLIT_MEMORY codegen is no longer available (https://github.com/emscripten-core/emscripten/pull/7465) (Valid values: [0])
3396
+
- ``SPLIT_MEMORY``: Starting from Emscripten 1.38.19, SPLIT_MEMORY codegen is no longer available (https://github.com/emscripten-core/emscripten/pull/7465) (Valid values: [0])
3397
+
- ``BINARYEN_METHOD``: Starting from Emscripten 1.38.23, Emscripten now always builds either to Wasm (-sWASM - default), or to JavaScript (-sWASM=0), other methods are not supported (https://github.com/emscripten-core/emscripten/pull/7836) (Valid values: ['native-wasm'])
3398
+
- ``BINARYEN_TRAP_MODE``: The wasm backend does not support a trap mode (it always clamps, in effect) (Valid values: [-1])
3399
+
- ``PRECISE_I64_MATH``: Starting from Emscripten 1.38.26, PRECISE_I64_MATH is always enabled (https://github.com/emscripten-core/emscripten/pull/7935) (Valid values: [1, 2])
3400
+
- ``MEMFS_APPEND_TO_TYPED_ARRAYS``: Starting from Emscripten 1.38.26, MEMFS_APPEND_TO_TYPED_ARRAYS=0 is no longer supported. MEMFS no longer supports using JS arrays for file data (https://github.com/emscripten-core/emscripten/pull/7918) (Valid values: [1])
3401
+
- ``ERROR_ON_MISSING_LIBRARIES``: missing libraries are always an error now (Valid values: [1])
3402
+
- ``EMITTING_JS``: The new STANDALONE_WASM flag replaces this (replace EMITTING_JS=0 with STANDALONE_WASM=1) (Valid values: [1])
3403
+
- ``SKIP_STACK_IN_SMALL``: SKIP_STACK_IN_SMALL is no longer needed as the backend can optimize it directly (Valid values: [0, 1])
3404
+
- ``SAFE_STACK``: Replace SAFE_STACK=1 with STACK_OVERFLOW_CHECK=2 (Valid values: [0])
- ``ELIMINATE_DUPLICATE_FUNCTIONS``: Duplicate function elimination for wasm is handled automatically by binaryen (Valid values: [0, 1])
3407
+
- ``ELIMINATE_DUPLICATE_FUNCTIONS_DUMP_EQUIVALENT_FUNCTIONS``: Duplicate function elimination for wasm is handled automatically by binaryen (Valid values: [0])
3408
+
- ``ELIMINATE_DUPLICATE_FUNCTIONS_PASSES``: Duplicate function elimination for wasm is handled automatically by binaryen (Valid values: [5])
3409
+
- ``WASM_OBJECT_FILES``: For LTO, use -flto or -fto=thin instead; to disable LTO, just do not pass WASM_OBJECT_FILES=1 as 1 is the default anyhow (Valid values: [0, 1])
- ``DEAD_FUNCTIONS``: The wasm backend does not support dead function removal (Valid values: [[]])
3429
+
- ``WASM_BACKEND``: Only the wasm backend is now supported (note that setting it as -s has never been allowed anyhow) (Valid values: [-1])
3430
+
- ``EXPORT_BINDINGS``: No longer needed (Valid values: [0, 1])
3431
+
- ``RUNNING_JS_OPTS``: Fastcomp cared about running JS which could alter asm.js validation, but not upstream (Valid values: [0])
3432
+
- ``EXPORT_FUNCTION_TABLES``: No longer needed (Valid values: [0])
3433
+
- ``BINARYEN_SCRIPTS``: No longer needed (Valid values: [''])
3434
+
- ``WARN_UNALIGNED``: No longer needed (Valid values: [0, 1])
3435
+
- ``ASM_PRIMITIVE_VARS``: No longer needed (Valid values: [[]])
3436
+
- ``WORKAROUND_IOS_9_RIGHT_SHIFT_BUG``: Wasm2JS does not support iPhone 4s, iPad 2, iPad 3, iPad Mini 1, Pod Touch 5 (devices with end-of-life at iOS 9.3.5) and older (Valid values: [0])
3437
+
- ``RUNTIME_FUNCS_TO_IMPORT``: No longer needed (Valid values: [[]])
3438
+
- ``LIBRARY_DEPS_TO_AUTOEXPORT``: No longer needed (Valid values: [[]])
3439
+
- ``EMIT_EMSCRIPTEN_METADATA``: No longer supported (Valid values: [0])
3440
+
- ``SHELL_FILE``: No longer supported (Valid values: [''])
3441
+
- ``LLD_REPORT_UNDEFINED``: Disabling is no longer supported (Valid values: [1])
3442
+
- ``MEM_INIT_METHOD``: No longer supported (Valid values: [0])
3443
+
- ``USE_PTHREADS``: No longer needed. Use -pthread instead (Valid values: [0, 1])
3444
+
- ``USES_DYNAMIC_ALLOC``: No longer supported. Use -sMALLOC=none (Valid values: [1])
3445
+
- ``REVERSE_DEPS``: No longer needed (Valid values: ['auto', 'all', 'none'])
- ``MIN_EDGE_VERSION``: No longer supported (Valid values: [2147483647])
3448
+
- ``MIN_IE_VERSION``: No longer supported (Valid values: [2147483647])
3449
+
- ``WORKAROUND_OLD_WEBGL_UNIFORM_UPLOAD_IGNORED_OFFSET_BUG``: No longer supported (Valid values: [0])
3450
+
- ``AUTO_ARCHIVE_INDEXES``: No longer needed (Valid values: [0, 1])
3451
+
- ``USE_ES6_IMPORT_META``: Disabling is no longer supported (Valid values: [1])
3452
+
- ``EXTRA_EXPORTED_RUNTIME_METHODS``: No longer supported, use EXPORTED_RUNTIME_METHODS (Valid values: [[]])
3453
+
- ``SUPPORT_ERRNO``: No longer supported (Valid values: [0])
3454
+
- ``DEMANGLE_SUPPORT``: No longer supported (Valid values: [0])
3455
+
- ``MAYBE_WASM2JS``: No longer supported (use -sWASM=2) (Valid values: [0])
3456
+
- ``HEADLESS``: No longer supported, use headless browsers or Node.js with JSDOM (Valid values: [0])
3457
+
- ``USE_OFFSET_COVERTER``: No longer supported, not needed with modern v8 versions (Valid values: [0])
3458
+
- ``ASYNCIFY_LAZY_LOAD_CODE``: No longer supported (Valid values: [0])
3459
+
- ``USE_WEBGPU``: No longer supported; replaced by --use-port=emdawnwebgpu, which implements a newer (but incompatible) version of webgpu.h - see tools/ports/emdawnwebgpu.py (Valid values: [0])
['BUILD_AS_SHARED_LIB',[0],'Starting from Emscripten 1.38.16, no longer available (https://github.com/emscripten-core/emscripten/pull/7433)'],
2220
-
['SAFE_SPLIT_MEMORY',[0],'Starting from Emscripten 1.38.19, SAFE_SPLIT_MEMORY codegen is no longer available (https://github.com/emscripten-core/emscripten/pull/7465)'],
2221
-
['SPLIT_MEMORY',[0],'Starting from Emscripten 1.38.19, SPLIT_MEMORY codegen is no longer available (https://github.com/emscripten-core/emscripten/pull/7465)'],
2222
-
['BINARYEN_METHOD',['native-wasm'],'Starting from Emscripten 1.38.23, Emscripten now always builds either to Wasm (-sWASM - default), or to JavaScript (-sWASM=0), other methods are not supported (https://github.com/emscripten-core/emscripten/pull/7836)'],
2223
-
['BINARYEN_TRAP_MODE',[-1],'The wasm backend does not support a trap mode (it always clamps, in effect)'],
2224
-
['PRECISE_I64_MATH',[1,2],'Starting from Emscripten 1.38.26, PRECISE_I64_MATH is always enabled (https://github.com/emscripten-core/emscripten/pull/7935)'],
2225
-
['MEMFS_APPEND_TO_TYPED_ARRAYS',[1],'Starting from Emscripten 1.38.26, MEMFS_APPEND_TO_TYPED_ARRAYS=0 is no longer supported. MEMFS no longer supports using JS arrays for file data (https://github.com/emscripten-core/emscripten/pull/7918)'],
2226
-
['ERROR_ON_MISSING_LIBRARIES',[1],'missing libraries are always an error now'],
2227
-
['EMITTING_JS',[1],'The new STANDALONE_WASM flag replaces this (replace EMITTING_JS=0 with STANDALONE_WASM=1)'],
2228
-
['SKIP_STACK_IN_SMALL',[0,1],'SKIP_STACK_IN_SMALL is no longer needed as the backend can optimize it directly'],
2229
-
['SAFE_STACK',[0],'Replace SAFE_STACK=1 with STACK_OVERFLOW_CHECK=2'],
['ELIMINATE_DUPLICATE_FUNCTIONS',[0,1],'Duplicate function elimination for wasm is handled automatically by binaryen'],
2232
-
['ELIMINATE_DUPLICATE_FUNCTIONS_DUMP_EQUIVALENT_FUNCTIONS',[0],'Duplicate function elimination for wasm is handled automatically by binaryen'],
2233
-
['ELIMINATE_DUPLICATE_FUNCTIONS_PASSES',[5],'Duplicate function elimination for wasm is handled automatically by binaryen'],
2234
-
// WASM_OBJECT_FILES is handled in emcc.py, supporting both 0 and 1 for now.
2235
-
['WASM_OBJECT_FILES',[0,1],'For LTO, use -flto or -fto=thin instead; to disable LTO, just do not pass WASM_OBJECT_FILES=1 as 1 is the default anyhow'],
2236
-
['TOTAL_MEMORY','INITIAL_MEMORY'],
2237
-
['WASM_MEM_MAX','MAXIMUM_MEMORY'],
2238
-
['BINARYEN_MEM_MAX','MAXIMUM_MEMORY'],
2239
-
['BINARYEN_PASSES',[''],'Use BINARYEN_EXTRA_PASSES to add additional passes'],
2240
-
['SWAPPABLE_ASM_MODULE',[0],'Fully swappable asm modules are no longer supported'],
2241
-
['ASM_JS',[1],'asm.js output is not supported anymore'],
2242
-
['FINALIZE_ASM_JS',[0,1],'asm.js output is not supported anymore'],
['WORKAROUND_IOS_9_RIGHT_SHIFT_BUG',[0],'Wasm2JS does not support iPhone 4s, iPad 2, iPad 3, iPad Mini 1, Pod Touch 5 (devices with end-of-life at iOS 9.3.5) and older'],
['USE_WEBGPU',[0],'No longer supported; replaced by --use-port=emdawnwebgpu, which implements a newer (but incompatible) version of webgpu.h - see tools/ports/emdawnwebgpu.py'],
0 commit comments