Skip to content

Commit

Permalink
Improve POSIX compatibility of build script (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcmetzger authored Mar 27, 2024
1 parent a2bc909 commit cfc4782
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build_rte_rrtmgp.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# /bin/bash
#!/bin/sh

if [ -n "$CONDA_PREFIX" ] && [ "$OS" == *"Windows"* ] || [ -z "$CONDA_PREFIX" ]; then
if [ -n "$CONDA_PREFIX" ] && [ "$OS" = *"Windows"* ]; then
export FC=gfortran
elif [ -z "$CONDA_PREFIX" ]; then
export FC=gfortran
fi

make -C rte-rrtmgp/build -j 2
make -C rte-rrtmgp/build -j 2

0 comments on commit cfc4782

Please sign in to comment.