https://github.com/python/cpython/commit/2423814eb64730c148600d0704717e01d5b59aa8
commit: 2423814eb64730c148600d0704717e01d5b59aa8
branch: main
author: Lazizbek Ergashev <[email protected]>
committer: vstinner <[email protected]>
date: 2026-10-08T17:12:09+02:00
summary:

gh-156895: Document CXX in ./configure --help output (#157046)

files:
M configure
M configure.ac

diff --git a/configure b/configure
index d6f5319beb7037..35035e45b21a19 100755
--- a/configure
+++ b/configure
@@ -1175,6 +1175,7 @@ LDFLAGS
 LIBS
 CPPFLAGS
 CPP
+CXX
 PROFILE_TASK
 BOLT_COMMON_FLAGS
 BOLT_INSTRUMENT_FLAGS
@@ -2033,6 +2034,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
+  CXX         C++ compiler command
   PROFILE_TASK
               Python args for PGO generation task
   BOLT_COMMON_FLAGS
diff --git a/configure.ac b/configure.ac
index 9ed32b686f033a..6037e79801b450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1146,7 +1146,7 @@ AC_CACHE_CHECK([for GCC compatible compiler],
                [ac_cv_gcc_compat=yes],
                [ac_cv_gcc_compat=no])])
 
-AC_SUBST([CXX])
+AC_ARG_VAR([CXX], [C++ compiler command])
 
 preset_cxx="$CXX"
 if test -z "$CXX"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to