Skip to content
Snippets Groups Projects
Commit e76c083c authored by Peter A. Jonsson's avatar Peter A. Jonsson
Browse files

msp430: configure according to $(CC)

The checks for how to compile should
be with respect to the compiler used
for the build.
parent 021f07e0
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ endif ...@@ -146,7 +146,7 @@ endif
### Checks for compiler version to enable 20-bit support ### Checks for compiler version to enable 20-bit support
ifndef IAR ifndef IAR
ifneq (,$(findstring 4.7.,$(shell msp430-gcc -dumpversion))) ifneq (,$(findstring 4.7.,$(shell $(CC) -dumpversion)))
ifdef CPU_HAS_MSP430X ifdef CPU_HAS_MSP430X
ifeq ($(TARGET_MEMORY_MODEL),large) ifeq ($(TARGET_MEMORY_MODEL),large)
CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment