Update Makefile to use clang if it's available

This commit is contained in:
Rob Loach 2018-10-12 20:14:34 -04:00 committed by GitHub
parent 7854686903
commit 86005bcfb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,12 @@ OBJ := build/obj
BOOTROMS_DIR ?= $(BIN)/BootROMs BOOTROMS_DIR ?= $(BIN)/BootROMs
# Set tools # Set tools
# Use clang if it's available.
ifneq (, $(shell which clang))
CC := clang
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
MKDIR := $(shell which mkdir) MKDIR := $(shell which mkdir)