增加 __GNUC__宏定义 和sconscript的平台识别以避免重复定义

This commit is contained in:
mysterywolf
2020-09-08 13:16:49 +08:00
parent 0607ff84ab
commit ff097f0467
6 changed files with 8 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ else:
if GetDepend('RT_USING_POSIX') == False:
SrcRemove(src, ['unistd.c'])
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
if not GetDepend('RT_USING_MINILIBC') and GetDepend('RT_USING_LIBC'):
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
Return('group')