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/gd32350r-eval/Libraries/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsp/gd32350r-eval/Libraries/SConscript') diff --git a/bsp/gd32350r-eval/Libraries/SConscript b/bsp/gd32350r-eval/Libraries/SConscript index eb25cf1e7a..e2f97da936 100644 --- a/bsp/gd32350r-eval/Libraries/SConscript +++ b/bsp/gd32350r-eval/Libraries/SConscript @@ -10,7 +10,7 @@ src = Glob('GD32F3x0_standard_peripheral/Source/*.c') src += [cwd + '/CMSIS/GD/GD32F3x0/Source/system_gd32f3x0.c'] #add for startup script -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [cwd + '/CMSIS/GD/GD32F3x0/Source/ARM/startup_gd32f3x0.s'] -- cgit v1.3.1