From 5da1354db9840cd6a481fde89ee9330282bdefce Mon Sep 17 00:00:00 2001 From: Filipianosol Date: Mon, 30 May 2022 12:08:30 +0200 Subject: [PATCH] Fix icon when `CC` has more than one word (#123) Takes the first word as an argument instead of the entire `CC` string. Ensures it's always one word. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 12970c4a..d4c5df47 100644 --- a/Makefile +++ b/Makefile @@ -906,7 +906,7 @@ ifeq ($(WINDOWS_BUILD),1) ifeq ($(ICON),1) Command := mkdir -p "$(BUILD_DIR)/res" Resp := $(shell $(call Command)) - Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc" --preprocessor $(CC) --preprocessor-arg -E --preprocessor-arg -xc-header --preprocessor-arg -DRC_INVOKED + Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc" --preprocessor $(word 1, $(CC)) --preprocessor-arg -E --preprocessor-arg -xc-header --preprocessor-arg -DRC_INVOKED Resp := $(shell $(call Command)) ifeq ($(.SHELLSTATUS),0) LDFLAGS += $(BUILD_DIR)/res/icon.o