mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 09:48:54 +00:00
Apply same Linux compiler-picker logic to Mac.
This commit is contained in:
parent
d57ea671d7
commit
dba91eaa09
@ -1,5 +1,9 @@
|
||||
CC?=clang
|
||||
CXX?=clang++
|
||||
ifeq ($(origin CC),default)
|
||||
CC=$(shell if [ -e /usr/bin/clang ]; then echo clang; else echo gcc; fi)
|
||||
endif
|
||||
ifeq ($(origin CXX),default)
|
||||
CXX=$(shell if [ -e /usr/bin/clang++ ]; then echo clang++; else echo g++; fi)
|
||||
endif
|
||||
|
||||
INCLUDES=-I/usr/local/include
|
||||
DEFS=
|
||||
|
Loading…
Reference in New Issue
Block a user