Skip to content

Commit

Permalink
CC_FOR_BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Nov 7, 2024
1 parent 353f042 commit 0cc3d85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ if [[ ! -z "$mpi" && "$mpi" != "nompi" ]]; then
export CC_FOR_BUILD=$BUILD_PREFIX/bin/mpicc
export CXX_FOR_BUILD=$BUILD_PREFIX/bin/mpic++
export FC_FOR_BUILD=$BUILD_PREFIX/bin/mpifort
if [[ "$mpi" == "openmpi" ]]; then
# openmpi compilers are binaries, so always need to use build prefix
# linking is governed by environment variables
# openmpi env enables cross-compile by default in conda-build
export CC=$CC_FOR_BUILD
export CXX=$CXX_FOR_BUILD
export FC=$FC_FOR_BUILD
fi
else
export CC_FOR_BUILD=$PREFIX/bin/mpicc
export CXX_FOR_BUILD=$PREFIX/bin/mpic++
Expand Down

0 comments on commit 0cc3d85

Please sign in to comment.