summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2025-02-16 22:02:42 +0800
committerGitHub <[email protected]>2025-02-16 22:02:42 +0800
commit5b3320624da5149fc21c2d3e1f321d855e3d0dfe (patch)
tree6132995c8750c420b5d3d94686c8e21a4915ba0b /src
parentc40b79037ce8bb09ba95411ebee1b22631cf9027 (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 'src')
-rw-r--r--src/SConscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index 8407e6ef18..93b8e8e3f3 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -44,6 +44,12 @@ if rtconfig.PLATFORM in ['gcc']: # only for GCC
if rtconfig.ARCH not in ['sim']:
LINKFLAGS += ' -Wl,--gc-sections,--print-memory-usage' # remove unused sections and print memory usage
+if GetDepend('RT_USING_HOOKLIST') == True:
+ if rtconfig.PLATFORM in ['gcc', 'armclang']:
+ LOCAL_CFLAGS += ' -std=gnu99'
+ elif rtconfig.PLATFORM in ['armcc']:
+ LOCAL_CFLAGS += ' --c99 --gnu'
+
group = DefineGroup('Kernel', src, depend=[''], CPPPATH=inc,
LINKFLAGS=LINKFLAGS, LOCAL_CFLAGS=LOCAL_CFLAGS,
CPPDEFINES=['__RTTHREAD__'], LOCAL_CPPDEFINES=['__RT_KERNEL_SOURCE__'])