trainerproc: use -traditional-cpp to preserve Unicode characters (#4969)

This commit is contained in:
Martin Griffin 2024-07-14 10:28:05 +01:00 committed by GitHub
parent d410f56a8c
commit 9c1a85ef0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -346,7 +346,7 @@ sound/%.bin: sound/%.aif ; $(AIF) $< $@
COMPETITIVE_PARTY_SYNTAX := $(shell PATH="$(PATH)"; echo 'COMPETITIVE_PARTY_SYNTAX' | $(CPP) $(CPPFLAGS) -imacros include/global.h | tail -n1)
ifeq ($(COMPETITIVE_PARTY_SYNTAX),1)
%.h: %.party tools ; $(CPP) $(CPPFLAGS) - < $< | sed '/#[^p]/d' | $(TRAINERPROC) -o $@ -i $< -
%.h: %.party tools ; $(CPP) $(CPPFLAGS) -traditional-cpp - < $< | sed '/#[^p]/d' | $(TRAINERPROC) -o $@ -i $< -
endif
ifeq ($(MODERN),0)