diff options
| author | Meco Man <[email protected]> | 2022-05-30 18:04:05 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-06-09 07:01:59 +0800 |
| commit | 50f041f5c2fb69b06283f54ce4619a08751d9367 (patch) | |
| tree | 7e21367cb788808018dd4ccf5eee70a8ac2c8d0f /bsp/mm32l07x/Libraries/SConscript | |
| parent | e622ef3aec4fe36d6348a3e746823dadc213979b (diff) | |
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp/mm32l07x/Libraries/SConscript')
| -rw-r--r-- | bsp/mm32l07x/Libraries/SConscript | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |
