From 50f041f5c2fb69b06283f54ce4619a08751d9367 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 30 May 2022 18:04:05 -0400 Subject: [Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/mm32l07x/Libraries/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsp/mm32l07x/Libraries/SConscript') diff --git a/bsp/mm32l07x/Libraries/SConscript b/bsp/mm32l07x/Libraries/SConscript index 9720355244..586f3f45f6 100644 --- a/bsp/mm32l07x/Libraries/SConscript +++ b/bsp/mm32l07x/Libraries/SConscript @@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L0xx/Include', cwd + '/MM32L0xx/Sou src += Glob('MM32L0xx/HAL_lib/src/*.c') CPPDEFINES = ['USE_STDPERIPH_DRIVER'] -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s'] -- cgit v1.3.1