update poll sconscript

This commit is contained in:
Meco Man
2021-12-14 06:12:04 +08:00
committed by Bernard Xiong
parent 15435b6850
commit 153ab5c238
+5 -2
View File
@@ -3,9 +3,12 @@
from building import *
cwd = GetCurrentDir()
src = ['poll.c']
src = []
CPPPATH = [cwd]
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_POLL'], CPPPATH = CPPPATH)
if GetDepend('RT_USING_POSIX_POLL'):
src += ['poll.c']
group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
Return('group')