diff options
| author | shuobatian <[email protected]> | 2021-01-11 20:07:12 +0800 |
|---|---|---|
| committer | shuobatian <[email protected]> | 2021-01-11 20:07:12 +0800 |
| commit | 791527caca746633fb28119a7c8987e297fe27df (patch) | |
| tree | ef563ccf37e43483b9ffb913b4b7e2b11ab391b9 /components/drivers/spi/SConscript | |
| parent | feafb5579b017c74699fe51549ce4f7d6c2e7b6e (diff) | |
add armclang support
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 |
