Skip to content

Commit

Permalink
Merge pull request #314 from JuliaMath/aa/clang-aarch64-fixes
Browse files Browse the repository at this point in the history
Fixes for building on AArch64 with Clang
  • Loading branch information
ararslan authored Jan 8, 2025
2 parents 49a3204 + 4d2d83f commit db24332
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Make.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- mode: makefile-gmake -*-
# vi:ft=make

# Default build rule for any Makefile in this project: all
default: all
Expand Down Expand Up @@ -28,10 +29,6 @@ endif
# Just Run: make clean && make coverage -j
CODE_COVERAGE ?= 0

USEGCC ?= 1
USECLANG ?= 0
TOOLPREFIX ?=

ifneq (,$(findstring $(OS),Darwin FreeBSD OpenBSD))
USEGCC ?= 0
USECLANG ?= 1
Expand All @@ -49,10 +46,14 @@ USEGCC = 0
TOOLPREFIX = llvm-
endif

USEGCC ?= 1
USECLANG ?= 0
TOOLPREFIX ?=

AR := $(TOOLPREFIX)ar

ifeq ($(USECLANG),1)
USEGCC ?= 0
USEGCC = 0
CC = clang
CFLAGS_add += -fno-builtin -fno-strict-aliasing
endif
Expand Down Expand Up @@ -171,7 +172,7 @@ ifneq ($(filter $(ARCH),i387 amd64),)
# linux x86_64, for instance, `long double` is 80 bits wide, whereas on macOS aarch64,
# `long double` is the same as `double`.
LONG_DOUBLE_NOT_DOUBLE := 1
else ifeq ($(ARCH), aarch64 riscv64)
else ifeq ($(ARCH), aarch64)
ifeq ($(filter $(OS),Darwin WINNT),)
LONG_DOUBLE_NOT_DOUBLE := 1
endif
Expand Down

0 comments on commit db24332

Please sign in to comment.