@@ -709,7 +709,7 @@ var LZ4 = false;
709709// This option only applies to Emscripten (JavaScript-based) exception handling
710710// and does not control the native Wasm exception handling.
711711//
712- // [compile+link] - affects user code at compile and system libraries at link
712+ // [compile+link]
713713var DISABLE_EXCEPTION_CATCHING = 1 ;
714714
715715// Enables catching exception but only in the listed functions. This
@@ -720,7 +720,7 @@ var DISABLE_EXCEPTION_CATCHING = 1;
720720// This option only applies to Emscripten (JavaScript-based) exception handling
721721// and does not control the native Wasm exception handling.
722722//
723- // [compile+link] - affects user code at compile and system libraries at link
723+ // [compile+link]
724724var EXCEPTION_CATCHING_ALLOWED = [ ] ;
725725
726726// Internal: Tracks whether Emscripten should link in exception throwing (C++
@@ -733,13 +733,11 @@ var EXCEPTION_CATCHING_ALLOWED = [];
733733// throwing code is not linked in. If so you should either unset the option (if
734734// you do want exceptions) or fix the compilation of the source files so that
735735// indeed no exceptions are used).
736- // TODO(sbc): Move to settings_internal (current blocked due to use in test
737- // code).
738736//
739737// This option only applies to Emscripten (JavaScript-based) exception handling
740738// and does not control the native Wasm exception handling.
741739//
742- // [link]
740+ // [compile+ link]
743741var DISABLE_EXCEPTION_THROWING = false ;
744742
745743// Make the exception message printing function, 'getExceptionMessage' available
@@ -1118,6 +1116,7 @@ var INCLUDE_FULL_LIBRARY = false;
11181116// globals and function pointers are all offset (by gb and fp, respectively)
11191117// Automatically set for SIDE_MODULE or MAIN_MODULE.
11201118// [compile+link]
1119+ // [deprecated]
11211120var RELOCATABLE = false ;
11221121
11231122// A main module is a file compiled in a way that allows us to link it to
@@ -1148,12 +1147,14 @@ var BUILD_AS_WORKER = false;
11481147// If set to 1, we build the project into a js file that will run in a worker,
11491148// and generate an html file that proxies input and output to/from it.
11501149// [link]
1150+ // [deprecated]
11511151var PROXY_TO_WORKER = false ;
11521152
11531153// If set, the script file name the main thread loads. Useful if your project
11541154// doesn't run the main emscripten- generated script immediately but does some
11551155// setup before
11561156// [link]
1157+ // [deprecated]
11571158var PROXY_TO_WORKER_FILENAME = '' ;
11581159
11591160// If set to 1, compiles in a small stub main() in between the real main() which
@@ -1184,7 +1185,8 @@ var PROXY_TO_PTHREAD = false;
11841185// to set this explicitly. Note that MAIN_MODULE and SIDE_MODULE mode 2 do
11851186// *not* set this, so that we still do normal DCE on them, and in that case
11861187// you must keep relevant things alive yourself using exporting.
1187- // [link]
1188+ // [compile+link]
1189+ // [deprecated]
11881190var LINKABLE = false ;
11891191
11901192// Emscripten 'strict' build mode: Drop supporting any deprecated build options.
@@ -1607,11 +1609,11 @@ var USE_MODPLUG = false;
16071609
16081610// Formats to support in SDL2_image. Valid values: bmp, gif, lbm, pcx, png, pnm,
16091611// tga, xcf, xpm, xv
1610- // [link]
1612+ // [compile+ link]
16111613var SDL2_IMAGE_FORMATS = [ ] ;
16121614
16131615// Formats to support in SDL2_mixer. Valid values: ogg, mp3, mod, mid
1614- // [link]
1616+ // [compile+ link]
16151617var SDL2_MIXER_FORMATS = [ "ogg" ] ;
16161618
16171619// 1 = use sqlite3 from emscripten-ports
@@ -1620,13 +1622,13 @@ var SDL2_MIXER_FORMATS = ["ogg"];
16201622var USE_SQLITE3 = false ;
16211623
16221624// If 1, target compiling a shared Wasm Memory.
1623- // [compile+link] - affects user code at compile and system libraries at link.
1625+ // [compile+link]
16241626var SHARED_MEMORY = false ;
16251627
16261628// Enables support for Wasm Workers. Wasm Workers enable applications
16271629// to create threads using a lightweight web-specific API that builds on top
16281630// of Wasm SharedArrayBuffer + Atomics API.
1629- // [compile+link] - affects user code at compile and system libraries at link.
1631+ // [compile+link]
16301632var WASM_WORKERS = 0 ;
16311633
16321634// If true, enables targeting Wasm Web Audio AudioWorklets. Check out the
@@ -1978,9 +1980,9 @@ var MINIMAL_RUNTIME_STREAMING_WASM_INSTANTIATION = false;
19781980// - 1: Default setjmp/longjmp/handling, depending on the mode of exceptions.
19791981// 'wasm' if '-fwasm-exceptions' is used, 'emscripten' otherwise.
19801982//
1981- // [compile+link] - at compile time this enables the transformations needed for
1982- // longjmp support at codegen time, while at link it allows linking in the
1983- // library support.
1983+ // At compile time this enables the transformations needed for longjmp support
1984+ // at codegen time, while at link it allows linking in the library support.
1985+ // [compile+link]
19841986var SUPPORT_LONGJMP = true ;
19851987
19861988// If set to 1, disables old deprecated HTML5 API event target lookup behavior.
@@ -2107,6 +2109,7 @@ var IMPORTED_MEMORY = false;
21072109// As well as this the generated JS code will contains help functions
21082110// to loading split modules.
21092111// [link]
2112+ // [experimental]
21102113var SPLIT_MODULE = false ;
21112114
21122115// For MAIN_MODULE builds, automatically load any dynamic library dependencies
@@ -2169,11 +2172,13 @@ var SIGNATURE_CONVERSIONS = [];
21692172// and not yet supported by browsers.
21702173// Requires EXPORT_ES6
21712174// [link]
2175+ // [experimental]
21722176var SOURCE_PHASE_IMPORTS = false ;
21732177
21742178// Experimental support for wasm ESM integration.
21752179// Requires EXPORT_ES6 and MODULARIZE=instance
21762180// [link]
2181+ // [experimental]
21772182var WASM_ESM_INTEGRATION = false ;
21782183
21792184// Enable use of the JS arraybuffer-base64 API:
@@ -2194,6 +2199,7 @@ var GROWABLE_ARRAYBUFFERS = false;
21942199// Experimental support for WebAssembly js-types proposal.
21952200// It's currently only available under a flag in certain browsers,
21962201// so we disable it by default to save on code size.
2202+ // [experimental]
21972203var WASM_JS_TYPES = false ;
21982204
21992205// If the emscripten-generated program is hosted on separate origin then
0 commit comments