Skip to content

Commit

Permalink
Use MPI compilers for MPI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Nov 26, 2019
1 parent 2721049 commit 6c95819
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if [[ -n "$mpi" && "$mpi" != "nompi" ]]; then
export CC=mpicc
export CXX=mpicxx
fi

if [ $(uname) == Darwin ]; then
export CXX="${CXX} -stdlib=libc++"
fi
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "4.3.1" %}
{% set build = 0 %}
{% set build = 1 %}

# recipe-lint fails if mpi is undefined
{% set mpi = mpi or 'nompi' %}
Expand Down

0 comments on commit 6c95819

Please sign in to comment.