Skip to content

Commit

Permalink
Merge pull request #9911 from jjhursey/v5-fix-iquote
Browse files Browse the repository at this point in the history
Fix Fortran preprocessor issue with CPPFLAGS
  • Loading branch information
awlauria authored Jan 25, 2022
2 parents 9314a42 + bfdebed commit b191681
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ompi/mpi/fortran/use-mpi-f08/profile/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@

include $(top_srcdir)/Makefile.ompi-rules

# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
# AM_CPPFLAGS. This can cause weirdness (e.g.,
# https://github.com/open-mpi/ompi/issues/7253). Let's just zero
# those out and rely on AM_FCFLAGS.
CPPFLAGS =
AM_CPPFLAGS =

# This Makefile is only relevant if we're building the "use mpi_f08"
# MPI bindings.
if OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS
Expand Down
9 changes: 9 additions & 0 deletions ompi/mpiext/example/use-mpi-f08/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2017 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2022 IBM Corporation. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
# AM_CPPFLAGS. This can cause weirdness (e.g.,
# https://github.com/open-mpi/ompi/issues/7253 and
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
# those out and rely on AM_FCFLAGS.
CPPFLAGS =
AM_CPPFLAGS =

# This file builds the use_mpi_f08-based bindings for MPI extensions. It
# is optional in MPI extensions.

Expand Down
9 changes: 9 additions & 0 deletions ompi/mpiext/ftmpi/use-mpi-f08/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
# Copyright (c) 2018 The University of Tennessee and The University
# of Tennessee Research Foundation. All rights
# reserved.
# Copyright (c) 2022 IBM Corporation. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
# AM_CPPFLAGS. This can cause weirdness (e.g.,
# https://github.com/open-mpi/ompi/issues/7253 and
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
# those out and rely on AM_FCFLAGS.
CPPFLAGS =
AM_CPPFLAGS =

# This file builds the use_mpi_f08-based bindings for MPI extensions. It
# is optional in MPI extensions.

Expand Down

0 comments on commit b191681

Please sign in to comment.