Skip to content

Commit 8169290

Browse files
authored
Merge pull request #8793 from bwbarrett/bugfix/mpicc-should-use-the-same-compiler-as-ompi
Wrapper compiler cleanups
2 parents 2497d7a + 30b85c6 commit 8169290

File tree

3 files changed

+17
-25
lines changed

3 files changed

+17
-25
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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
9696
# Get the full path to the wrapper compiler. If it doesn't exist
9797
# assume that the path is not currently valid.
9898
wrapper_tmp="$(type -p "$with_wrapper_cc")"
99-
WRAPPER_CC="${wrapper_tmp:-$with_wrapper_cc}"
10099
if test -z "$wrapper_tmp" ; then
101100
AC_MSG_WARN([could not find \"$with_wrapper_cc\" in path])
102101
fi
102+
WRAPPER_CC=$with_wrapper_cc
103103

104104
AC_MSG_RESULT([$WRAPPER_CC])
105105

@@ -117,19 +117,19 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
117117
AS_IF([test "$with_wrapper_cflags_prefix" = "yes" || test "$with_wrapper_cflags_prefix" = "no"],
118118
[AC_MSG_ERROR([--with-wrapper-cflags-prefix must have an argument.])])
119119

120-
AC_ARG_WITH([wrapper-cxxflags],
121-
[AS_HELP_STRING([--with-wrapper-cxxflags],
122-
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
123-
AS_IF([test "$with_wrapper_cxxflags" = "yes" || test "$with_wrapper_cxxflags" = "no"],
124-
[AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
125-
126-
AC_ARG_WITH([wrapper-cxxflags-prefix],
127-
[AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
128-
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
129-
AS_IF([test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"],
130-
[AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
131-
132120
m4_ifdef([project_ompi], [
121+
AC_ARG_WITH([wrapper-cxxflags],
122+
[AS_HELP_STRING([--with-wrapper-cxxflags],
123+
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
124+
AS_IF([test "$with_wrapper_cxxflags" = "yes" || test "$with_wrapper_cxxflags" = "no"],
125+
[AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
126+
127+
AC_ARG_WITH([wrapper-cxxflags-prefix],
128+
[AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
129+
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
130+
AS_IF([test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"],
131+
[AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
132+
133133
AC_ARG_WITH([wrapper-fcflags],
134134
[AS_HELP_STRING([--with-wrapper-fcflags],
135135
[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)