summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32l010-st-nucleo/SConstruct
diff options
context:
space:
mode:
authorJCZou <[email protected]>2021-08-19 08:53:27 +0200
committerJCZou <[email protected]>2021-08-19 08:53:27 +0200
commit0369db718cd3b1ff58ceb2fc44a48641a0fecc66 (patch)
tree377e87f083c8aa1e0ef3c29f9ff37a5b6d6da070 /bsp/stm32/stm32l010-st-nucleo/SConstruct
parent1656d7f8f824ff1fc41ac4a772c5646c2edeefbd (diff)
Fix compiler flags issue
CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for gcc to avoid passing gcc flags to g++.
Diffstat (limited to 'bsp/stm32/stm32l010-st-nucleo/SConstruct')
-rw-r--r--bsp/stm32/stm32l010-st-nucleo/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32/stm32l010-st-nucleo/SConstruct b/bsp/stm32/stm32l010-st-nucleo/SConstruct
index 5fcb889bc2..5260453150 100644
--- a/bsp/stm32/stm32l010-st-nucleo/SConstruct
+++ b/bsp/stm32/stm32l010-st-nucleo/SConstruct
@@ -20,7 +20,7 @@ TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
- CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
+ CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc',
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)