Skip to content

Commit c34145e

Browse files
committed
cleanup and fix macos-x86_64
1 parent 805690d commit c34145e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tools/build_steps.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function before_build {
4141
source venv/bin/activate
4242
# Since install_fortran uses `uname -a` to determine arch,
4343
# force the architecture
44+
unalias gfortran 2>/dev/null || true
4445
arch -${PLAT} bash -s << " EOF"
4546
set -ex
4647
source tools/gfortran_utils.sh
@@ -159,14 +160,6 @@ function do_build_lib {
159160
Darwin-x86_64)
160161
local bitness=64
161162
local target="CORE2"
162-
# Use gfortran-11
163-
unalias gfortran
164-
# Since install_fortran uses `uname -a` to determine arch,
165-
# force the architecture
166-
arch -${PLAT} bash -s << EOF
167-
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
168-
install_gfortran
169-
EOF
170163
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
171164
CFLAGS="$CFLAGS -arch x86_64"
172165
export SDKROOT=${SDKROOT:-$(xcrun --show-sdk-path)}

0 commit comments

Comments
 (0)