mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 01:50:22 +00:00
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user