Reinstate macOS logic
This commit is contained in:
parent
36a17536ca
commit
8f811a9312
|
@ -23,11 +23,16 @@ ifneq ($(findstring cmd.exe,$(SHELL)),)
|
||||||
ifeq ($(shell where $(CC) 2>NUL),)
|
ifeq ($(shell where $(CC) 2>NUL),)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
endif
|
endif
|
||||||
else # POSIX
|
else # POSIX-ish
|
||||||
ifeq ($(shell command -v $(CC) 2>/dev/null),)
|
ifeq ($(shell command -v $(CC) 2>/dev/null),)
|
||||||
|
ifeq ($(shell uname -s),Darwin)
|
||||||
|
CC = clang
|
||||||
|
# EXTRALIB += -Wl,-no_compact_unwind
|
||||||
|
else
|
||||||
CC = gcc
|
CC = gcc
|
||||||
endif
|
endif # Darwin
|
||||||
endif
|
endif # CC exists
|
||||||
|
endif # Shell is sane
|
||||||
|
|
||||||
endif # CC is set to default
|
endif # CC is set to default
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue