We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1c443 commit acfe22dCopy full SHA for acfe22d
setup-fortran.sh
@@ -50,14 +50,8 @@ install_gcc_brew()
50
fi
51
52
# make an unversioned symlink
53
- os_ver=$(sw_vers -productVersion | cut -d'.' -f1)
54
- if (( "$os_ver" > 13 )); then
55
- # default homebrew bin dir changed with macos 14
56
- bindir=/opt/homebrew/bin
57
- else
58
- bindir=/usr/local/bin
59
- fi
60
-
+ # detect actual homebrew location (differs between Intel and ARM)
+ bindir=$(brew --prefix)/bin
61
ln -fs ${bindir}/gfortran-${gcc_version} /usr/local/bin/gfortran
62
ln -fs ${bindir}/gcc-${gcc_version} /usr/local/bin/gcc
63
ln -fs ${bindir}/g++-${gcc_version} /usr/local/bin/g++
0 commit comments