add clang-arm support.

This commit is contained in:
guozhanxin
2021-12-22 00:39:08 +08:00
committed by Bernard Xiong
parent f20eef99db
commit a5f6fdc780
7 changed files with 41 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
if rtconfig.CROSS_TOOL == 'gcc' or rtconfig.CROSS_TOOL == 'clang':
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l496xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l496xx.s']