Skip to content

Commit 9ecd28c

Browse files
authored
Merge pull request GENIE-MC#446 from GENIE-MC/gardiner/macosxarm64
Add handling of the macOS arm64 architecture to Make.include
2 parents 7b875bb + 63ec130 commit 9ecd28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/make/Make.include

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ SOMINF =
410410
EXTRALIBS =
411411
endif
412412

413-
# MAC OS X with gcc or clang, 64-bit mode
413+
# MAC OS X with gcc or clang, 64-bit mode, including arm
414414
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
415-
ifeq ($(strip $(ARCH)),macosx64)
415+
ifneq (,$(filter $(strip $(ARCH)),macosx64 macosxarm64))
416416
OSX_VERSION = $(shell sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*')
417417
OSXVRS_MAJ = $(shell awk 'BEGIN {\
418418
str="$(OSX_VERSION)"; split(str, tk, "."); print tk[1]}')

0 commit comments

Comments
 (0)