mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 13:58:36 +08:00
[tools] add GetGCCLikePLATFORM
GCC like means the toolchains which are compatible with GCC
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from building import *
|
||||
from gcc import *
|
||||
import rtconfig
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
@@ -29,7 +30,7 @@ if GetDepend('RT_USING_SFUD'):
|
||||
if GetDepend('RT_SFUD_USING_SFDP'):
|
||||
src_device += ['sfud/src/sfud_sfdp.c']
|
||||
|
||||
if rtconfig.PLATFORM in ['gcc', 'armclang', 'llvm-arm']:
|
||||
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
|
||||
LOCAL_CFLAGS += ' -std=c99'
|
||||
elif rtconfig.PLATFORM in ['armcc']:
|
||||
LOCAL_CFLAGS += ' --c99'
|
||||
|
||||
Reference in New Issue
Block a user