summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-12-08 09:13:57 -0500
committerBernard Xiong <[email protected]>2021-12-14 06:12:04 +0800
commit153ab5c2382b90dab1b2f2cbbb99e82f235208f0 (patch)
tree064f5c03a895775d7148f83cc895c56a1a5824cb /components/libc
parent15435b68507e0a5b6b90341d7c53945487aaf0de (diff)
update poll sconscript
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/io/poll/SConscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/libc/posix/io/poll/SConscript b/components/libc/posix/io/poll/SConscript
index 47f1722ed3..7d82ade035 100644
--- a/components/libc/posix/io/poll/SConscript
+++ b/components/libc/posix/io/poll/SConscript
@@ -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')