Skip to content

Commit fcc41d7

Browse files
authored
Merge pull request #9899 from jjhursey/fix-iquote-check
Fix Fortran preprocessor issue with CPPFLAGS
2 parents 22bc7d2 + bbe5788 commit fcc41d7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ompi/mpiext/example/use-mpi-f08/Makefile.am

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
33
# Copyright (c) 2017 Research Organization for Information Science
44
# and Technology (RIST). All rights reserved.
5+
# Copyright (c) 2022 IBM Corporation. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
89
#
910
# $HEADER$
1011
#
1112

13+
# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
14+
# AM_CPPFLAGS. This can cause weirdness (e.g.,
15+
# https://github.com/open-mpi/ompi/issues/7253 and
16+
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
17+
# those out and rely on AM_FCFLAGS.
18+
CPPFLAGS =
19+
AM_CPPFLAGS =
20+
1221
# This file builds the use_mpi_f08-based bindings for MPI extensions. It
1322
# is optional in MPI extensions.
1423

ompi/mpiext/ftmpi/use-mpi-f08/Makefile.am

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@
66
# Copyright (c) 2018 The University of Tennessee and The University
77
# of Tennessee Research Foundation. All rights
88
# reserved.
9+
# Copyright (c) 2022 IBM Corporation. All rights reserved.
910
# $COPYRIGHT$
1011
#
1112
# Additional copyrights may follow
1213
#
1314
# $HEADER$
1415
#
1516

17+
# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
18+
# AM_CPPFLAGS. This can cause weirdness (e.g.,
19+
# https://github.com/open-mpi/ompi/issues/7253 and
20+
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
21+
# those out and rely on AM_FCFLAGS.
22+
CPPFLAGS =
23+
AM_CPPFLAGS =
24+
1625
# This file builds the use_mpi_f08-based bindings for MPI extensions. It
1726
# is optional in MPI extensions.
1827

0 commit comments

Comments
 (0)