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 --- components/drivers/spi/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/drivers/spi/SConscript') diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index b409f1196c..8fe82b73e4 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -29,7 +29,7 @@ if GetDepend('RT_USING_SFUD'): if GetDepend('RT_SFUD_USING_SFDP'): src_device += ['sfud/src/sfud_sfdp.c'] - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': LOCAL_CFLAGS += ' --c99' -- cgit v1.3.1