configure should not (almost) silently delete CXX and FC if they don't work
$ git checkout fda35e93d67f9f81065401e8701b6c164edc03c0
$ diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py
index b6ae3dec915..67753734caa 100644
--- a/config/BuildSystem/config/setCompilers.py
+++ b/config/BuildSystem/config/setCompilers.py
@@ -835,2 +835,3 @@ class Configure(config.base.Configure):
+ I just want BuildSystem to report a broken C++ compiler
constexpr int big_value = 1234;
$ ./configure --download-hypre PETSC_ARCH=arch-broken-cxx --with-fc=0 --with-c2html=0 --with-mpi=0 --with-cxx=clang++
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
TESTING: consistencyChecks from config.packages.hypre(config/BuildSystem/config/packages/hypre.py:180)
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
Cannot use hypre without C++, make sure you do NOT have --with-cxx=0
*********************************************************************************************