diff options
| author | Meco Man <[email protected]> | 2023-08-20 13:26:39 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2023-08-21 01:25:52 -0400 |
| commit | 30c793fdb99376197a569d28ec74d76cfc6d6638 (patch) | |
| tree | 10014bb575af3bfd63a81d77de1ed6a147023735 /components/drivers/spi/SConscript | |
| parent | 290678b66576e9adaaa338f0e110ce17535bd262 (diff) | |
[tools] add GetGCCLikePLATFORM
GCC like means the toolchains which are compatible with GCC
Diffstat (limited to 'components/drivers/spi/SConscript')
| -rw-r--r-- | components/drivers/spi/SConscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index e84ed7bb06..cea447fab4 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -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' |
