Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading