mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 04:55:11 +00:00
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.
This commit is contained in:
parent
c942b8496a
commit
5da1354db9
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
|
Loading…
Reference in a new issue