This commit is contained in:
CrispyBuns 2024-03-09 13:33:37 +00:00 committed by GitHub
commit 4af32269f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

2
Build_clang.sh Normal file
View File

@ -0,0 +1,2 @@
make CC=clang CXX=clang++ CPP=clang-cpp

View File

@ -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