update poll sconscript

This commit is contained in:
Meco Man 2021-12-08 09:13:57 -05:00 committed by Bernard Xiong
parent 15435b6850
commit 153ab5c238
1 changed files with 5 additions and 2 deletions

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')