diff --git a/Build_clang.sh b/Build_clang.sh new file mode 100644 index 00000000..9b61955d --- /dev/null +++ b/Build_clang.sh @@ -0,0 +1,2 @@ +make CC=clang CXX=clang++ CPP=clang-cpp + diff --git a/Makefile b/Makefile index 287ad961..77f57265 100644 --- a/Makefile +++ b/Makefile @@ -489,14 +489,14 @@ else ifeq ($(WINDOWS_BUILD),1) endif ifeq ($(WINDOWS_BUILD),1) # fixes compilation in MXE on Linux and WSL - CPP := cpp -P + CPP ?= cpp -P OBJCOPY := objcopy OBJDUMP := $(CROSS)objdump else ifeq ($(OSX_BUILD),1) OBJDUMP := i686-w64-mingw32-objdump OBJCOPY := i686-w64-mingw32-objcopy else # Linux & other builds - CPP := $(CROSS)cpp -P + CPP ?= $(CROSS)cpp -P OBJCOPY := $(CROSS)objcopy OBJDUMP := $(CROSS)objdump endif