summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-07-29 12:57:35 -0700
committerGitHub <noreply@github.com>2024-07-29 15:57:35 -0400
commit0db9e7275f72d404106dee86f17208fd8a35acbc (patch)
tree39fbeb19c3edbf80c5a3c5130e555643bfbae44b
parentec5068c58d3c40d188c9a59791e5562bff38ce3e (diff)
Fix Makefile performance regression with OOT_VERSION define (#2006)
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 163311086..9ffbc5c41 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,8 @@ MAKE = make
CPPFLAGS += -P -xc -fno-dollars-in-identifiers
# Converts e.g. ntsc-1.0 to OOT_NTSC_1_0
-CPP_DEFINES += -DOOT_VERSION=OOT_$(shell echo $(VERSION) | tr a-z-. A-Z__)
+VERSION_MACRO := OOT_$(shell echo $(VERSION) | tr a-z-. A-Z__)
+CPP_DEFINES += -DOOT_VERSION=$(VERSION_MACRO)
CPP_DEFINES += -DOOT_REGION=REGION_$(REGION)
ifeq ($(PAL),0)