summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-12-16 20:29:58 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-12-16 20:29:58 -0500
commit11df2113d9c7ab9e09073a93db2bd467b664f678 (patch)
tree9a5de6994d9b9f89833799ffc2ed293a9f43722d
parentd597c5c883ad62b1fc62e9c688c2f8a17a1a853e (diff)
Use arm-none-eabi-cpp for modern.
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a341ab5d4..891cab480 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,13 @@ endif
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy
AS := $(PREFIX)as
+
+ifneq ($(MODERN),1)
CPP := $(CC) -E
+else
+CPP := $(PREFIX)cpp
+endif
+
LD := $(PREFIX)ld
# note: the makefile must be set up so MODERNCC is never called