浏览代码

解决minilibc time.c和newlibc仅定义RT_LIBC_USING_TIME时冲突的问题

mysterywolf 4 年之前
父节点
当前提交
0607ff84ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/libc/compilers/common/SConscript

+ 1 - 1
components/libc/compilers/common/SConscript

@@ -10,7 +10,7 @@ CPPPATH = [cwd]
 if GetDepend('RT_USING_LIBC'):
 if GetDepend('RT_USING_LIBC'):
         src += Glob('*.c')
         src += Glob('*.c')
 else:
 else:
-        if GetDepend('RT_LIBC_USING_TIME'):
+        if GetDepend('RT_LIBC_USING_TIME') and not GetDepend('RT_USING_MINILIBC'):
                 src += ['time.c']
                 src += ['time.c']
 
 
 if GetDepend('RT_USING_POSIX') == False:
 if GetDepend('RT_USING_POSIX') == False: