Skip to content

Commit d374bb4

Browse files
committed
Correct armc6 detection logic
1 parent 75cb4d7 commit d374bb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32L4/l4_retarget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*
3333
******************************************************************************
3434
*/
35-
#if (defined(TWO_RAM_REGIONS) && defined(__GNUC__) && !defined(__CC_ARM))
35+
#if (defined(TWO_RAM_REGIONS) && defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC_VERSION))
3636
#include <errno.h>
3737
#include "stm32l4xx.h"
3838
extern uint32_t __mbed_sbrk_start;

targets/TARGET_STM/mbed_rtx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
#endif
123123

124124
#endif // INITIAL_SP
125-
#if (defined(__GNUC__) && !defined(__CC_ARM) && defined(TWO_RAM_REGIONS))
125+
#if (defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC_VERSION) && defined(TWO_RAM_REGIONS))
126126
extern uint32_t __StackLimit[];
127127
extern uint32_t __StackTop[];
128128
extern uint32_t __end__[];

0 commit comments

Comments
 (0)