Skip to content

Commit

Permalink
Merge pull request #330 from s-neilson/master
Browse files Browse the repository at this point in the history
Made compiling with gfortran on aarch64 processors possible.
  • Loading branch information
danieljprice authored Nov 3, 2022
2 parents 8ec8c03 + ebbdaf5 commit 1e41b8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SHELL = /bin/bash
VPATH = "${RUNDIR}" ../src/main ../src/utils ../src/setup ../src/tests ../src/lib/NICIL/src
BINDIR= ../bin
UNAME=${shell uname}
UNAMEP=${shell uname -p}
#----------------------------------------------------------------
# Sensible defaults for phantom configuration
#----------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions build/Makefile_systems
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ endif
ifeq ($(SYSTEM), gfortran)
include Makefile_defaults_gfortran
ifneq ($(UNAME), Darwin)
ifeq ($(UNAMEP), aarch64) # -mcmodel=medium is not an option for aarch64 type processors with gfortran.
FFLAGS+= -mcmodel=small
else
FFLAGS+= -mcmodel=medium
endif
endif
endif

Expand Down

0 comments on commit 1e41b8c

Please sign in to comment.