Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 2 additions & 4 deletions src/extensions/caf-foot
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ if [ $# == 0 ]; then
exit 1
fi

# Default to "mpif90" Fortran compiler if environment variable CAFC has zero length:
if [ -z "$CAFC" ]; then
CAFC=mpif90
fi
# Default to "mpif90" Fortran compiler if environment variable CAFC is empty or unset:
CAFC=${CAFC:-mpif90}

# TODO -- improve the syntax of the "set" command below to accepted an unlimited number of arguments
max_arguments=100
Expand Down
5 changes: 5 additions & 0 deletions src/mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ if(opencoarrays_aware_compiler)
else()
file(APPEND "${compiler_wrapper}" "caf_compiler=false\n")
endif()

if ( DEFINED ENV{FC} )
file(APPEND "${compiler_wrapper}" "CAFC=$ENV{FC}\n")
endif ()

if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
file(APPEND "${compiler_wrapper}" "linux=true\n")
endif()
Expand Down