Skip to content

Commit b3ab8a9

Browse files
committed
Signed-off-by: mysterywolf
1 parent 28e0c99 commit b3ab8a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/libc/compilers/common/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ CPPPATH = [cwd]
99

1010
if GetDepend('RT_USING_LIBC'):
1111
src += Glob('*.c')
12-
if GetDepend('RT_USING_POSIX') == False:
13-
SrcRemove(src, ['unistd.c'])
1412
else:
1513
if GetDepend('RT_LIBC_USING_TIME') and not GetDepend('RT_USING_MINILIBC'):
1614
src += ['time.c']
1715

16+
if GetDepend('RT_USING_POSIX') == False:
17+
SrcRemove(src, ['unistd.c'])
1818

1919
if not GetDepend('RT_USING_MINILIBC') and (GetDepend('RT_USING_LIBC') or GetDepend('RT_LIBC_USING_TIME')):
2020
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)

0 commit comments

Comments
 (0)