diff --git a/Makefile b/Makefile index b098cdec..58064d24 100755 --- a/Makefile +++ b/Makefile @@ -34,6 +34,12 @@ OBJ := build/obj BOOTROMS_DIR ?= $(BIN)/BootROMs # Set tools + +# Use clang if it's available. +ifneq (, $(shell which clang)) +CC := clang +endif + ifeq ($(PLATFORM),windows32) # To force use of the Unix version instead of the Windows version MKDIR := $(shell which mkdir)