summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 15 insertions, 11 deletions
diff --git a/configure b/configure
index f261a86..f08a01c 100755
--- a/configure
+++ b/configure
@@ -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*) :