summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorEthan Smith <ethan@ethanhs.me>2022-04-28 12:14:19 (GMT)
committerGitHub <noreply@github.com>2022-04-28 12:14:19 (GMT)
commitd1de10784d9678d14759d0d03216431d1090e60e (patch)
tree41a6ed1074400ac9a2cf54eb60334425d603db5c /configure
parent87c6cf9aa7cebac3c544067e690c2ad7ce18b772 (diff)
downloadcpython-d1de10784d9678d14759d0d03216431d1090e60e.zip
cpython-d1de10784d9678d14759d0d03216431d1090e60e.tar.gz
cpython-d1de10784d9678d14759d0d03216431d1090e60e.tar.bz2
gh-84461: Add HOSTRUNNER for program to run Python executable (GH-91931)
`HOSTRUNNER` is a program which can be used to run `BUILDPYTHON` for the host platform (for example, `python.js` requires `node`). Also change depedencies from `build_all` to `all` so that targets which can't build everything (e.g. WASM) can still run `buildbottest` and `pythoninfo`. cc @tiran
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 30 insertions, 0 deletions
diff --git a/configure b/configure
index f161e4e..2c47a1e 100755
--- a/configure
+++ b/configure
@@ -888,6 +888,7 @@ AR
LINK_PYTHON_OBJS
LINK_PYTHON_DEPS
LIBRARY_DEPS
+HOSTRUNNER
STATIC_LIBPYTHON
GNULD
EXPORTSFROM
@@ -1076,6 +1077,7 @@ LDFLAGS
LIBS
CPPFLAGS
CPP
+HOSTRUNNER
PROFILE_TASK
LIBUUID_CFLAGS
LIBUUID_LIBS
@@ -1878,6 +1880,7 @@ Some influential environment variables:
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
+ HOSTRUNNER Program to run CPython for the host platform
PROFILE_TASK
Python args for PGO generation task
LIBUUID_CFLAGS
@@ -6671,6 +6674,33 @@ if test "$cross_compiling" = yes; then
RUNSHARED=
fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
+$as_echo_n "checking HOSTRUNNER... " >&6; }
+if test -z "$HOSTRUNNER"
+then
+ case $ac_sys_system/$ac_sys_emscripten_target in #(
+ Emscripten/node*) :
+
+ if test "x$enable_wasm_pthreads" = xyes; then :
+
+ HOSTRUNNER='node --experimental-wasm-threads --experimental-wasm-bulk-memory'
+
+else
+
+ HOSTRUNNER='node'
+
+fi
+ ;; #(
+ *) :
+ HOSTRUNNER=''
+ ;;
+esac
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5
+$as_echo "$HOSTRUNNER" >&6; }
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
$as_echo "$LDLIBRARY" >&6; }