Skip to content

Don't require a C++ compiler #9075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions config/ompi_setup_cxx.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dnl Copyright (c) 2007-2009 Sun Microsystems, Inc. All rights reserved.
dnl Copyright (c) 2008-2020 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2015-2016 Research Organization for Information Science
dnl and Technology (RIST). All rights reserved.
dnl Copyright (c) 2021 Nanook Consulting. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
Expand All @@ -33,7 +34,6 @@ AC_DEFUN([OMPI_PROG_CXX],[

ompi_cxxflags_save="$CXXFLAGS"
AC_PROG_CXX
AC_PROG_CXXCPP
CXXFLAGS="$ompi_cxxflags_save"

# Note: according to the Autoconf docs, if no C++ compiler is
Expand All @@ -43,13 +43,14 @@ AC_DEFUN([OMPI_PROG_CXX],[
# https://www.open-mpi.org/community/lists/users/2013/02/21356.php,
# which advises us to set Libtool precious variables to "no" if we
# don't want Libtool to setup that language at all.
AS_IF([test "x$CXX" = "x"], [CXX=no])
set dummy $CXX
ompi_cxx_argv0=[$]2
OPAL_WHICH([$ompi_cxx_argv0], [OMPI_CXX_ABSOLUTE])
AS_IF([test "x$OMPI_CXX_ABSOLUTE" = "x"],
[CXX=no
OMPI_CXX_ABSOLUTE=no])
OMPI_CXX_ABSOLUTE=no],
[ # If we did actually find a C++ compiler, find the C++ CPP
AC_PROG_CXXCPP])

AC_DEFINE_UNQUOTED(OMPI_CXX, "$CXX", [OMPI underlying C++ compiler])
AC_SUBST(OMPI_CXX_ABSOLUTE)
Expand Down