Skip to content

Commit 96de084

Browse files
committed
typo, increase bash verbosity
1 parent 18c6e04 commit 96de084

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/build_steps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function before_build {
4444
# force the architecture when using rosetta
4545
unalias gfortran || true
4646
arch -${PLAT} bash -s << " EOF"
47+
set -xe
4748
source tools/gfortran_utils.sh
4849
install_gfortran
4950
EOF

tools/gfortran_utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ if [ "$(uname)" == "Darwin" ]; then
4848
*) echo Did not recognize arch-plat $arch-$plat; return 1 ;;
4949
esac
5050
curl -L -O https://github.com/isuruf/gcc/releases/download/${gccver}/gfortran-darwin-${arch}-${type}.tar.gz
51+
ls -lh gfortran-darwin-${arch}-${type}.tar.gz
5152
local filesha=$(python3 tools/sha256sum.py gfortran-darwin-${arch}-${type}.tar.gz)
5253
if [[ "$filesha" != "${GFORTRAN_SHA}" ]]; then
5354
echo shasum mismatch for ${gccver}/gfortran-darwin-${arch}-${type}
@@ -65,7 +66,7 @@ if [ "$(uname)" == "Darwin" ]; then
6566
rm gfortran-darwin-${arch}-${type}.tar.gz
6667
popd
6768
export FC="$(find /opt/gfortran/gfortran-darwin-${arch}-${type}/bin -name "*-gfortran")"
68-
local libgfortran="$(find /opt/gfortran/gfortran-darwin-${arch}-${cross}/lib -name libgfortran.dylib)"
69+
local libgfortran="$(find /opt/gfortran/gfortran-darwin-${arch}-${type}/lib -name libgfortran.dylib)"
6970
local libdir=$(dirname $libgfortran)
7071
export FFLAGS="-L$libdir -Wl,-rpath,$libdir"
7172
}

0 commit comments

Comments
 (0)