summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-01-12 00:45:02 -0500
committerMan, Jianting (Meco) <[email protected]>2023-01-12 01:43:44 -0500
commitb3105414717a6670b770621f2d0cd2d6eee18e02 (patch)
tree1916c0f966b703639bd44b1ec5e1b21ce5dfe0be /bsp
parentfcf2367966265ed06d7495497f6ad43e300d0792 (diff)
[env] add scons --strict
此commit意图在脚本中增加 scons --strict命令,使用该命令编译工程时,会自动将CFLAGS CXXFLAGS设置为 Werrors,即较为严格的编译模式,任何警告都会当做错误来处理。 该命令主要用于CI,在CI执行bsp编译时,可以使用 scons --strict命令。现在QEMU的rtconfig.py 为了CI检查,直接将CFLAGS加上了Werrors,导致正常编译过程中也把警告当做了错误,对日常使用该bsp造成了影响。
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/stm32f411-st-nucleo/rtconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32/stm32f411-st-nucleo/rtconfig.py b/bsp/stm32/stm32f411-st-nucleo/rtconfig.py
index 78b61b7d2f..72a60ae53f 100644
--- a/bsp/stm32/stm32f411-st-nucleo/rtconfig.py
+++ b/bsp/stm32/stm32f411-st-nucleo/rtconfig.py
@@ -44,7 +44,7 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
- CFLAGS = DEVICE + ' -Dgcc' + ' -Wall -Werror'
+ CFLAGS = DEVICE + ' -Dgcc' + ' -Wall'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'