4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 18:53:31 +08:00

[src] add a __RTTHREAD__ global macro definition

This commit is contained in:
yangjie11 2020-11-18 20:36:42 +08:00
parent d4a682e8d9
commit b082c91d8b

View File

@ -29,6 +29,8 @@ if GetDepend('RT_USING_DEVICE') == False:
if GetDepend('RT_USING_SMP') == False:
SrcRemove(src, ['cpu.c'])
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH)
CPPDEFINES = ['__RTTHREAD__']
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')