From 86005bcfb85a44caa28045d8471d329a4980f6a4 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 12 Oct 2018 20:14:34 -0400 Subject: [PATCH] Update Makefile to use clang if it's available --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index b098cde..58064d2 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)