diff --git a/configure b/configure index 7e4844263a3491..a57fefbe025876 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 8345c97349b738..6e1f99436fd6bf 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"