diff options
| author | bernard <[email protected]> | 2021-01-20 13:50:59 +0800 |
|---|---|---|
| committer | Gitee <[email protected]> | 2021-01-20 13:50:59 +0800 |
| commit | 9f4ce7ee6faef172b9b8ecd093c2f9177d892865 (patch) | |
| tree | d717b8adc8a4de93f60a15e5fe0a111c53e87545 /components/drivers/spi/SConscript | |
| parent | 60c695073f263ec6787bab4989c1e0fa46808718 (diff) | |
| parent | b546e25f9f47e9a302f43a6adebf76b7dd54eb95 (diff) | |
!113 添加armclang支持
Merge pull request !113 from shuobatian/gitee_master
Diffstat (limited to 'components/drivers/spi/SConscript')
| -rw-r--r-- | components/drivers/spi/SConscript | 5 |
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 |
