summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authormysterywolf <[email protected]>2020-09-08 11:12:56 +0800
committermysterywolf <[email protected]>2020-09-08 11:12:56 +0800
commit0607ff84ab4cf9a8b6ed92ce17776bd852d9bc62 (patch)
tree7eb3797859866042bc75ba7609e4e435cb7adbda /components/libc
parentf021cb982a1add837755af2c513ab17605a55f2d (diff)
解决minilibc time.c和newlibc仅定义RT_LIBC_USING_TIME时冲突的问题
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/common/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript
index deadacb426..718f05743c 100644
--- a/components/libc/compilers/common/SConscript
+++ b/components/libc/compilers/common/SConscript
@@ -10,7 +10,7 @@ CPPPATH = [cwd]
if GetDepend('RT_USING_LIBC'):
src += Glob('*.c')
else:
- if GetDepend('RT_LIBC_USING_TIME'):
+ if GetDepend('RT_LIBC_USING_TIME') and not GetDepend('RT_USING_MINILIBC'):
src += ['time.c']
if GetDepend('RT_USING_POSIX') == False: