From 78546869030992e5076b20323d16f275f546e1ed Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 11 Oct 2018 21:54:04 -0400 Subject: [PATCH 1/2] Remove redefinition of CC Redefining CC isn't a standard thing to do in Makefiles. See more information about this over at: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 1b41474..b098cde 100755 --- a/Makefile +++ b/Makefile @@ -34,8 +34,6 @@ OBJ := build/obj BOOTROMS_DIR ?= $(BIN)/BootROMs # Set tools - -CC := clang ifeq ($(PLATFORM),windows32) # To force use of the Unix version instead of the Windows version MKDIR := $(shell which mkdir) From 86005bcfb85a44caa28045d8471d329a4980f6a4 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 12 Oct 2018 20:14:34 -0400 Subject: [PATCH 2/2] 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)