summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-04-02 18:37:40 +0800
committerGitHub <[email protected]>2021-04-02 18:37:40 +0800
commit199f73c72d8dfb4463760d0fb19787c2dba23a26 (patch)
tree055b155e301f096a99fbb28c3ec5aa61249512dd /components/drivers
parenta98d81ab9f8b8acb36bcc23f48cedb730de0e010 (diff)
parent11dd63e9e934330312af66b661170f26363d53c1 (diff)
Merge pull request #4547 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/spi/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript
index e19f30861f..d6cb93f7f1 100644
--- a/components/drivers/spi/SConscript
+++ b/components/drivers/spi/SConscript
@@ -28,7 +28,10 @@ if GetDepend('RT_USING_SFUD'):
if rtconfig.CROSS_TOOL == 'gcc':
LOCAL_CCFLAGS += ' -std=c99'
elif rtconfig.CROSS_TOOL == 'keil':
- LOCAL_CCFLAGS += ' --c99'
+ if rtconfig.PLATFORM == 'armcc':
+ LOCAL_CCFLAGS += ' --c99'
+ elif rtconfig.PLATFORM == 'armclang':
+ LOCAL_CCFLAGS += ' -std=c99'
src += src_device