diff options
author | Christian Heimes <christian@python.org> | 2022-04-01 15:24:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 15:24:00 (GMT) |
commit | 17245c815e44e79d4dad6a99b54000956a4a7229 (patch) | |
tree | 14b3cadbfd06d8ef2b0ffde4a524cfa6bc34b355 /configure | |
parent | abdd69c95c1711c2dc75be4e784c6d6c80a409b9 (diff) | |
download | cpython-17245c815e44e79d4dad6a99b54000956a4a7229.zip cpython-17245c815e44e79d4dad6a99b54000956a4a7229.tar.gz cpython-17245c815e44e79d4dad6a99b54000956a4a7229.tar.bz2 |
bpo-40280: Add debug Emscripten flavors (GH-32233)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -6262,6 +6262,10 @@ if test "${with_emscripten_target+set}" = set; then : ac_sys_emscripten_target=browser ;; #( node) : ac_sys_emscripten_target=node ;; #( + browser-debug) : + ac_sys_emscripten_target=browser-debug ;; #( + node-debug) : + ac_sys_emscripten_target=node-debug ;; #( *) : as_fn_error $? "Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5 ;; @@ -6303,9 +6307,9 @@ esac else case $ac_sys_system/$ac_sys_emscripten_target in #( - Emscripten/browser) : + Emscripten/browser*) : EXEEXT=.html ;; #( - Emscripten/node) : + Emscripten/node*) : EXEEXT=.js ;; #( WASI/*) : EXEEXT=.wasm ;; #( @@ -6615,7 +6619,7 @@ $as_echo "$LDLIBRARY" >&6; } # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable case $ac_sys_system/$ac_sys_emscripten_target in #( - Emscripten/browser) : + Emscripten/browser*) : LIBRARY_DEPS='$(PY3LIBRARY) $(WASM_STDLIB)' ;; #( *) : LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' @@ -7758,29 +7762,29 @@ fi # The option disables code elimination, which increases code size of main # binary. All objects must be built with -fPIC. case $ac_sys_system/$ac_sys_emscripten_target in #( - Emscripten/browser) : + Emscripten/browser*) : LDFLAGS_NODIST="$LDFLAGS_NODIST -s ALLOW_MEMORY_GROWTH=1" LINKFORSHARED="--preload-file \$(WASM_ASSETS_DIR)" WASM_ASSETS_DIR=".\$(prefix)" WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py" - if test "$Py_DEBUG" = 'true'; then + if test "$Py_DEBUG" = 'true' -o "$ac_sys_emscripten_target" = "browser-debug"; then LDFLAGS_NODIST="$LDFLAGS_NODIST -s ASSERTIONS=1" LINKFORSHARED="$LINKFORSHARED -gsource-map --emit-symbol-map" else LINKFORSHARED="$LINKFORSHARED -O2 -g0" fi ;; #( - Emscripten/node) : + Emscripten/node*) : LDFLAGS_NODIST="$LDFLAGS_NODIST -s ALLOW_MEMORY_GROWTH=1 -s NODERAWFS=1 -s USE_PTHREADS=1" LINKFORSHARED="-s PROXY_TO_PTHREAD=1 -s EXIT_RUNTIME=1" CFLAGS_NODIST="$CFLAGS_NODIST -pthread" - if test "$Py_DEBUG" = 'true'; then + if test "$Py_DEBUG" = 'true' -o "$ac_sys_emscripten_target" = "node-debug"; then LDFLAGS_NODIST="$LDFLAGS_NODIST -s ASSERTIONS=1" LINKFORSHARED="$LINKFORSHARED -gseparate-dwarf --emit-symbol-map" else - LINKFORSHARED="$LINKFORSHARED -O2 -gseparate-dwarf" + LINKFORSHARED="$LINKFORSHARED -O2 -g0" fi ;; #( WASI/*) : @@ -21672,7 +21676,7 @@ if test "$enable_test_modules" = no; then TEST_MODULES=no else case $ac_sys_system/$ac_sys_emscripten_target in #( - Emscripten/browser) : + Emscripten/browser*) : TEST_MODULES=no ;; #( *) : TEST_MODULES=yes @@ -21731,7 +21735,7 @@ case $ac_sys_system/$ac_sys_emscripten_target in #( py_cv_module__scproxy=n/a py_cv_module_spwd=n/a ;; #( - Emscripten/browser) : + Emscripten/browser*) : @@ -21759,7 +21763,7 @@ case $ac_sys_system/$ac_sys_emscripten_target in #( py_cv_module_=n/a ;; #( - Emscripten/node) : + Emscripten/node*) : |