Makefile: Allow setting CC.

This commit is contained in:
orbea 2019-05-09 09:01:15 -07:00
parent 10be34b5b2
commit 5ce8cf5016

View File

@ -44,9 +44,11 @@ endif
# Set tools # Set tools
# Use clang if it's available. # Use clang if it's available.
ifeq ($(origin CC),default)
ifneq (, $(shell which clang)) ifneq (, $(shell which clang))
CC := clang CC := clang
endif endif
endif
ifeq ($(PLATFORM),windows32) ifeq ($(PLATFORM),windows32)
# To force use of the Unix version instead of the Windows version # To force use of the Unix version instead of the Windows version