summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-08-15 10:32:27 -0400
committerguo <[email protected]>2022-08-16 09:39:00 +0800
commitdd94198bd6acaaf03324774fe415df3ca379d1f5 (patch)
tree19a6dabb882c4be18290d0a3efea95c763ce987f /components/drivers
parentc038e55d32362d52ffb35e20d4b05c445c35f3ce (diff)
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/spi/SConscript6
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