From 7b09f256daa3c16355f4d3ff68417516d5200976 Mon Sep 17 00:00:00 2001 From: Lazizbek Ergashev Date: Mon, 7 Sep 2026 00:59:05 +0500 Subject: [PATCH 1/2] gh-156895: Document CXX in ./configure --help output --- .../next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst | 1 + configure | 2 ++ configure.ac | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst diff --git a/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst b/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst new file mode 100644 index 000000000000000..a7167c02d3ba435 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst @@ -0,0 +1 @@ +Document the ``CXX`` environment variable in the :program:`configure` ``--help`` output. diff --git a/configure b/configure index 7e4844263a3491c..a57fefbe0258761 100755 --- a/configure +++ b/configure @@ -1175,6 +1175,7 @@ LDFLAGS LIBS CPPFLAGS CPP +CXX PROFILE_TASK BOLT_COMMON_FLAGS BOLT_INSTRUMENT_FLAGS @@ -2030,6 +2031,7 @@ Some influential environment variables: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory 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 8345c97349b7382..6e1f99436fd6bfb 100644 --- a/configure.ac +++ b/configure.ac @@ -1148,7 +1148,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" From 094cf3edb399a03003ff48aab88776a47a86a383 Mon Sep 17 00:00:00 2001 From: Lazizbek Ergashev Date: Mon, 7 Sep 2026 21:20:03 +0500 Subject: [PATCH 2/2] Remove NEWS entry --- .../next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst diff --git a/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst b/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst deleted file mode 100644 index a7167c02d3ba435..000000000000000 --- a/Misc/NEWS.d/next/Build/2026-09-07-00-30-00.gh-issue-156895.Jakqud.rst +++ /dev/null @@ -1 +0,0 @@ -Document the ``CXX`` environment variable in the :program:`configure` ``--help`` output.