Skip to content
Closed
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
1 change: 1 addition & 0 deletions tools/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function before_build {
# Since install_fortran uses `uname -a` to determine arch,
# force the architecture
arch -${PLAT} bash -s << EOF
set -ex
source tools/gfortran_utils.sh
install_gfortran
EOF
Expand Down
5 changes: 4 additions & 1 deletion tools/gfortran_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ function check_gfortran {
echo Missing gfortran
exit 1
fi
echo gfortran version
gfortran --version
}

function get_gf_lib_for_suf {
Expand All @@ -101,6 +103,7 @@ function get_gf_lib_for_suf {
}

if [ "$(uname)" == "Darwin" ]; then
set -ex
mac_target=${MACOSX_DEPLOYMENT_TARGET:-$(get_macosx_target)}
export MACOSX_DEPLOYMENT_TARGET=$mac_target
# Keep this for now as some builds might depend on this being
Expand Down Expand Up @@ -160,10 +163,10 @@ if [ "$(uname)" == "Darwin" ]; then
}
function install_gfortran {
download_and_unpack_gfortran $(uname -m) native
check_gfortran
if [[ "${PLAT:-}" == "universal2" || "${PLAT:-}" == "arm64" ]]; then
install_arm64_cross_gfortran
fi
check_gfortran
}

function get_gf_lib {
Expand Down