From a4198e2486cd457314474e961c8748a2a4dc7285 Mon Sep 17 00:00:00 2001 From: Nathan Schulte <8540239+nmschulte@users.noreply.github.com> Date: Fri, 18 Nov 2022 20:15:13 -0600 Subject: [PATCH] simulator: use CC and CPPC for LD (#4794) this allows to specify a different GCC when building --- simulator/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulator/Makefile b/simulator/Makefile index 82a1b75edf..eab9bbe012 100644 --- a/simulator/Makefile +++ b/simulator/Makefile @@ -226,10 +226,10 @@ CPPC = $(CCPREFIX) $(TRGT)g++ # Enable loading with g++ only if you need C++ runtime support. # NOTE: You can use C++ even without C++ support if you are careful. C++ # runtime support makes code size explode. -#LD = $(TRGT)gcc -LD = $(TRGT)g++ +#LD = $(CC) +LD = $(CPPC) CP = $(TRGT)objcopy -AS = $(TRGT)gcc -x assembler-with-cpp +AS = $(CC) -x assembler-with-cpp AR = $(TRGT)ar OD = $(TRGT)objdump SZ = $(TRGT)size