Skip to content

Commit 30b85c6

Browse files
committed
build: Remove opalc++ wrapper compiler
We no longer initialize the C++ compiler if we are not building the MPI or SHMEM layers and no longer require a C++ compiler. Rather than handling all the special cases to build the opalc++ wrapper compiler that no one uses, kill it off. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent c3fa62a commit 30b85c6

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

config/opal_config_files.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ AC_DEFUN([OPAL_CONFIG_FILES],[
2424
opal/mca/base/Makefile
2525
opal/tools/wrappers/Makefile
2626
opal/tools/wrappers/opalcc-wrapper-data.txt
27-
opal/tools/wrappers/opalc++-wrapper-data.txt
2827
opal/tools/wrappers/opal.pc
2928
])
3029
])

config/opal_setup_wrappers.m4

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,19 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
115115
AS_IF([test "$with_wrapper_cflags_prefix" = "yes" || test "$with_wrapper_cflags_prefix" = "no"],
116116
[AC_MSG_ERROR([--with-wrapper-cflags-prefix must have an argument.])])
117117

118-
AC_ARG_WITH([wrapper-cxxflags],
119-
[AS_HELP_STRING([--with-wrapper-cxxflags],
120-
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
121-
AS_IF([test "$with_wrapper_cxxflags" = "yes" || test "$with_wrapper_cxxflags" = "no"],
122-
[AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
123-
124-
AC_ARG_WITH([wrapper-cxxflags-prefix],
125-
[AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
126-
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
127-
AS_IF([test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"],
128-
[AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
129-
130118
m4_ifdef([project_ompi], [
119+
AC_ARG_WITH([wrapper-cxxflags],
120+
[AS_HELP_STRING([--with-wrapper-cxxflags],
121+
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
122+
AS_IF([test "$with_wrapper_cxxflags" = "yes" || test "$with_wrapper_cxxflags" = "no"],
123+
[AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
124+
125+
AC_ARG_WITH([wrapper-cxxflags-prefix],
126+
[AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
127+
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
128+
AS_IF([test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"],
129+
[AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
130+
131131
AC_ARG_WITH([wrapper-fcflags],
132132
[AS_HELP_STRING([--with-wrapper-fcflags],
133133
[Extra flags to add to FCFLAGS when using mpifort])])

opal/tools/wrappers/Makefile.am

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,18 @@ dist_opaldata_DATA = help-opal-wrapper.txt
4040
if WANT_INSTALL_HEADERS
4141

4242
nodist_opaldata_DATA = \
43-
opalcc-wrapper-data.txt \
44-
opalc++-wrapper-data.txt
43+
opalcc-wrapper-data.txt
4544

46-
nodist_man_MANS += opalcc.1 opalc++.1
45+
nodist_man_MANS += opalcc.1
4746

4847
pkgconfigdir = $(libdir)/pkgconfig
4948
pkgconfig_DATA = opal.pc
5049

5150
install-exec-hook:
5251
(cd $(DESTDIR)$(bindir); rm -f opalcc$(EXEEXT); $(LN_S) opal_wrapper$(EXEECT) opalcc$(EXEEXT))
53-
(cd $(DESTDIR)$(bindir); rm -f opalc++$(EXEEXT); $(LN_S) opal_wrapper$(EXEECT) opalc++$(EXEEXT))
5452

5553
uninstall-local:
56-
rm -f $(DESTDIR)$(bindir)/opalcc$(EXEEXT) \
57-
$(DESTDIR)$(bindir)/opalc++$(EXEEXT)
54+
rm -f $(DESTDIR)$(bindir)/opalcc$(EXEEXT)
5855

5956
endif # WANT_INSTALL_HEADERS
6057

@@ -73,9 +70,5 @@ opalcc.1: generic_wrapper.1
7370
rm -f opalcc.1
7471
sed -e 's/#COMMAND#/opalcc/g' -e 's/#PROJECT#/Open PAL/g' -e 's/#PROJECT_SHORT#/OPAL/g' -e 's/#LANGUAGE#/C/g' < $(top_builddir)/opal/tools/wrappers/generic_wrapper.1 > opalcc.1
7572

76-
opalc++.1: generic_wrapper.1
77-
rm -f opalc++.1
78-
sed -e 's/#COMMAND#/opalc++/g' -e 's/#PROJECT#/Open PAL/g' -e 's/#PROJECT_SHORT#/OPAL/g' -e 's/#LANGUAGE#/C++/g' < $(top_builddir)/opal/tools/wrappers/generic_wrapper.1 > opalc++.1
79-
8073
distclean-local:
81-
rm -f $(real_man_pages) opalcc.1 opalc++.1
74+
rm -f $(real_man_pages) opalcc.1

0 commit comments

Comments
 (0)