summaryrefslogtreecommitdiff
path: root/bsp/gd32107c-eval/Libraries/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-30 18:04:05 -0400
committerguo <[email protected]>2022-06-09 07:01:59 +0800
commit50f041f5c2fb69b06283f54ce4619a08751d9367 (patch)
tree7e21367cb788808018dd4ccf5eee70a8ac2c8d0f /bsp/gd32107c-eval/Libraries/SConscript
parente622ef3aec4fe36d6348a3e746823dadc213979b (diff)
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp/gd32107c-eval/Libraries/SConscript')
-rw-r--r--bsp/gd32107c-eval/Libraries/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/gd32107c-eval/Libraries/SConscript b/bsp/gd32107c-eval/Libraries/SConscript
index 2c49ad231f..f387300a3f 100644
--- a/bsp/gd32107c-eval/Libraries/SConscript
+++ b/bsp/gd32107c-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F10x_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']