From e76c083caeab8b93c3890a5044e2eff4f2a98781 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" <jonsson.peter.a@gmail.com> Date: Thu, 5 May 2022 14:07:17 +0200 Subject: [PATCH] msp430: configure according to $(CC) The checks for how to compile should be with respect to the compiler used for the build. --- arch/cpu/msp430/Makefile.msp430 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/cpu/msp430/Makefile.msp430 b/arch/cpu/msp430/Makefile.msp430 index 9691b2710a..6bad461e33 100644 --- a/arch/cpu/msp430/Makefile.msp430 +++ b/arch/cpu/msp430/Makefile.msp430 @@ -146,7 +146,7 @@ endif ### Checks for compiler version to enable 20-bit support ifndef IAR -ifneq (,$(findstring 4.7.,$(shell msp430-gcc -dumpversion))) +ifneq (,$(findstring 4.7.,$(shell $(CC) -dumpversion))) ifdef CPU_HAS_MSP430X ifeq ($(TARGET_MEMORY_MODEL),large) CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) -- GitLab