From 8f811a9312f6692c084c25fa78c45827accb7103 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Wed, 4 Apr 2018 11:41:45 -0700 Subject: [PATCH] Reinstate macOS logic --- Makefile.system | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile.system b/Makefile.system index 769628e98..142cb420f 100644 --- a/Makefile.system +++ b/Makefile.system @@ -23,11 +23,16 @@ ifneq ($(findstring cmd.exe,$(SHELL)),) ifeq ($(shell where $(CC) 2>NUL),) CC = gcc endif -else # POSIX +else # POSIX-ish ifeq ($(shell command -v $(CC) 2>/dev/null),) +ifeq ($(shell uname -s),Darwin) +CC = clang +# EXTRALIB += -Wl,-no_compact_unwind +else CC = gcc -endif -endif +endif # Darwin +endif # CC exists +endif # Shell is sane endif # CC is set to default