summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/SConscript
diff options
context:
space:
mode:
authormysterywolf <[email protected]>2020-09-08 10:52:02 +0800
committermysterywolf <[email protected]>2020-09-08 10:52:02 +0800
commitf021cb982a1add837755af2c513ab17605a55f2d (patch)
tree5d4075bd70ce1661a359d94cc56cf5055d28fb74 /components/libc/compilers/common/SConscript
parent5eccf51b61aadd6ad6b562d2762f601792a7bb55 (diff)
修改common下的sconscript脚本文件,增加unistd.c排除条件
Diffstat (limited to 'components/libc/compilers/common/SConscript')
-rw-r--r--components/libc/compilers/common/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript
index 7979e20944..deadacb426 100644
--- a/components/libc/compilers/common/SConscript
+++ b/components/libc/compilers/common/SConscript
@@ -13,6 +13,9 @@ else:
if GetDepend('RT_LIBC_USING_TIME'):
src += ['time.c']
+if GetDepend('RT_USING_POSIX') == False:
+ SrcRemove(src, ['unistd.c'])
+
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
Return('group')