diff options
| author | Supper Thomas <[email protected]> | 2025-02-16 22:02:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-16 22:02:42 +0800 |
| commit | 5b3320624da5149fc21c2d3e1f321d855e3d0dfe (patch) | |
| tree | 6132995c8750c420b5d3d94686c8e21a4915ba0b /components/drivers/ktime/SConscript | |
| parent | c40b79037ce8bb09ba95411ebee1b22631cf9027 (diff) | |
[src/ktime] fix the bug when use keil AC6 and open RT_USING_HOOKLIST … (#9993)
* [src/ktime] fix the bug when use keil AC6 and open RT_USING_HOOKLIST and RT_USING_KTIME
Diffstat (limited to 'components/drivers/ktime/SConscript')
| -rw-r--r-- | components/drivers/ktime/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/drivers/ktime/SConscript b/components/drivers/ktime/SConscript index 6eedb84818..3fb3139025 100644 --- a/components/drivers/ktime/SConscript +++ b/components/drivers/ktime/SConscript @@ -13,7 +13,12 @@ if rtconfig.ARCH in list: else: src += Glob("src/" + rtconfig.ARCH + "/*.c") CPPPATH = [cwd, cwd + "/inc"] +LOCAL_CCFLAGS = '' +if rtconfig.PLATFORM in ['gcc', 'armclang']: + LOCAL_CCFLAGS += ' -std=gnu99' +elif rtconfig.PLATFORM in ['armcc']: + LOCAL_CCFLAGS += ' --c99 --gnu' -group = DefineGroup('ktime', src, depend=['RT_USING_KTIME'], CPPPATH=CPPPATH) +group = DefineGroup('ktime', src, depend=['RT_USING_KTIME'], CPPPATH=CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) Return('group') |
