Skip to content

Commit 821e09e

Browse files
committed
run install_gfortran under arch on macos
1 parent 11b6fa1 commit 821e09e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/build_steps.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ function before_build {
1414
touch /usr/local/lib/.dir_exists
1515
source ${ROOT_DIR}/multibuild/osx_utils.sh
1616
get_macpython_environment ${MB_PYTHON_VERSION} venv
17-
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
1817
# Since install_fortran uses `uname -a` to determine arch,
1918
# force the architecture
20-
arch -${PLAT} install_gfortran
19+
arch -${PLAT} bash -s << EOF
20+
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
21+
install_gfortran
22+
EOF
2123
# Deployment target set by gfortran_utils
2224
echo "Deployment target $MACOSX_DEPLOYMENT_TARGET"
2325

0 commit comments

Comments
 (0)