From 006ee4f6cb9993ee484ebe9761f75c4ef0f123e4 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Wed, 10 Jun 2020 23:00:41 +0300 Subject: [PATCH] What rhymes with "willows" and breaks when you edit a Makefile? --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 587f2f8..a19df0a 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,10 @@ endif ifeq ($(PLATFORM),windows32) _ := $(shell chcp 65001) EXESUFFIX:=.exe +NATIVE_CC = clang -IWindows -Wno-deprecated-declarations else EXESUFFIX:= +NATIVE_CC := cc endif PB12_COMPRESS := build/pb12$(EXESUFFIX) @@ -390,7 +392,7 @@ $(OBJ)/BootROMs/SameBoyLogo.pb12: $(OBJ)/BootROMs/SameBoyLogo.2bpp $(PB12_COMPRE $(realpath $(PB12_COMPRESS)) < $< > $@ $(PB12_COMPRESS): BootROMs/pb12.c - cc -Wall -Werror $< -o $@ + $(NATIVE_CC) -Wall -Werror $< -o $@ $(BIN)/BootROMs/agb_boot.bin: BootROMs/cgb_boot.asm $(BIN)/BootROMs/cgb_boot_fast.bin: BootROMs/cgb_boot.asm