diff options
| author | Meco Man <[email protected]> | 2022-08-15 10:32:27 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-08-16 09:39:00 +0800 |
| commit | dd94198bd6acaaf03324774fe415df3ca379d1f5 (patch) | |
| tree | 19a6dabb882c4be18290d0a3efea95c763ce987f /components/drivers/spi/SConscript | |
| parent | c038e55d32362d52ffb35e20d4b05c445c35f3ce (diff) | |
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
Diffstat (limited to 'components/drivers/spi/SConscript')
| -rw-r--r-- | components/drivers/spi/SConscript | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index 8fe82b73e4..27b7a8dd71 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -29,12 +29,10 @@ if GetDepend('RT_USING_SFUD'): if GetDepend('RT_SFUD_USING_SFDP'): src_device += ['sfud/src/sfud_sfdp.c'] - if rtconfig.PLATFORM in ['gcc']: + if rtconfig.PLATFORM in ['gcc', 'armclang']: LOCAL_CFLAGS += ' -std=c99' - elif rtconfig.PLATFORM == 'armcc': + elif rtconfig.PLATFORM in ['armcc']: LOCAL_CFLAGS += ' --c99' - elif rtconfig.PLATFORM == 'armclang': - LOCAL_CFLAGS += ' -std=c99' src += src_device |
