8000 install arm64 gfortran cross-compiler · MacPython/gfortran-install@f902ac4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f902ac4

Browse files
committed
install arm64 gfortran cross-compiler
1 parent d430fe6 commit f902ac4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gfortran_utils.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ if [ "$(uname)" == "Darwin" ]; then
9797
hdiutil attach -mountpoint /Volumes/gfortran $GFORTRAN_DMG
9898
sudo installer -pkg /Volumes/gfortran/gfortran.pkg -target /
9999
check_gfortran
100+
if [[ "${PLAT:-}" == "universal2" || "${PLAT:-}" == "arm64" ]]; then
101+
curl -L -O https://github.com/isuruf/isuruf.github.io/releases/download/v1.0/gfortran-darwin-arm64.tar.gz
102+
sudo mkdir -p /opt/
103+
sudo cp gfortran-darwin-arm64.tar.gz /opt/gfortran-darwin-arm64.tar.gz
104+
pushd /opt
105+
sudo tar -xvf gfortran-darwin-arm64.tar.gz
106+
sudo rm gfortran-darwin-arm64.tar.gz
107+
popd
108+
export FC_ARM64="/opt/gfortran-darwin-arm64/bin/arm64-apple-darwin20.0.0-gfortran"
109+
fi
100110
}
101111

102112
function get_gf_lib {

0 commit comments

Comments
 (0)
0