diff options
| author | Meco Jianting Man <[email protected]> | 2021-04-05 10:01:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-05 10:01:59 +0800 |
| commit | fd227f79c0ac11d41c111a45f80148175e63f449 (patch) | |
| tree | 026f2e63fc76cf208676d3c28c21e2a65fe46de6 /components/drivers/spi/SConscript | |
| parent | c18cd58e3e9b70f412097534313cf5a76fca12a6 (diff) | |
| parent | 1e4a463f363dcde37f14d0ae2772360f4ff87a5e (diff) | |
Merge pull request #34 from RT-Thread/master
pr
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 |
