mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 18:47:22 +08:00
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
This commit is contained in:
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
|
||||
|
||||
startup_path_prefix = SDK_LIB
|
||||
|
||||
if rtconfig.PLATFORM == 'gcc':
|
||||
if rtconfig.PLATFORM in ['gcc']:
|
||||
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
|
||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
|
||||
|
||||
Reference in New Issue
Block a user