Skip to content

Commit 4c8dcb3

Browse files
Darwin/arm64: disable SVE/SME and fix gfortran link path
1 parent 0bc79da commit 4c8dcb3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/apple_m.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ jobs:
8787
echo "max_size = 300M" > ~/.ccache/ccache.conf
8888
echo "compression = true" >> ~/.ccache/ccache.conf
8989
ccache -s
90+
91+
- name: Add gfortran runtime to link path
92+
if: matrix.build == 'make' && runner.os == 'macOS'
93+
run: |
94+
GFORTRAN_LIBDIR=$(gfortran -print-file-name=libgfortran.dylib | xargs dirname)
95+
echo "Using gfortran runtime in $GFORTRAN_LIBDIR"
96+
echo "LDFLAGS=-L/opt/homebrew/opt/llvm/lib -L$GFORTRAN_LIBDIR" >> $GITHUB_ENV
9097
9198
- name: Build OpenBLAS
9299
run: |
93-
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
94100
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
95101
export CC="/opt/homebrew/opt/llvm/bin/clang"
96102
case "${{ matrix.build }}" in

Makefile.system

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,8 @@ ifeq ($(OSNAME), Darwin)
426426
ifndef MACOSX_DEPLOYMENT_TARGET
427427
ifeq ($(ARCH), arm64)
428428
export MACOSX_DEPLOYMENT_TARGET=11.0
429-
ifeq ($(C_COMPILER), GCC)
430429
export NO_SVE = 1
431430
export NO_SME = 1
432-
endif
433431
else
434432
export MACOSX_DEPLOYMENT_TARGET=10.8
435433
endif

0 commit comments

Comments
 (0)