You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No longer require a C++ compiler to build Open MPI
Fix several places where old code assumptions effectively required a
C++ compiler to build Open MPI. Most of these were a holdover from
early days when we (deliberately) assumed that there was always a C++
compiler available. In most cases this is true, but at least in some
CI cases that have come up recently, some Linux distros do not install
a C++ compiler by default. The list of changes in this commit include
the following:
- AC_PROG_CXX will set $CXX to "g++" even if no C++ compiler was found
(!!). Change that to set $CXX to "no" if no C++ compiler was found.
- Change the C++ configury to only test for C/C++ linker compatibility
when there's actually a C++ compiler.
- Remove duplicate C++ configury checks (in OPAL and OMPI)
- Remove C++ "bool" alignment and sizeof checks in configury; the
results of these tests aren't used in the code anywhere.
- Remove assumptions in opal/mca/threads/pthreads/configure.m4 that we
always have a C++ compiler (and stop using the undocumented
AC_PROVIDE_IFELSE macro; this Autoconf list post sums it up well:
https://lists.gnu.org/archive/html/autoconf/2012-11/msg00038.html).
- Do not install any C++ wrapper sym links or data files if there is
no C++ compiler
Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
0 commit comments