summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/SConscript
diff options
context:
space:
mode:
authorguo <[email protected]>2021-10-26 09:37:43 +0800
committerGitHub <[email protected]>2021-10-26 09:37:43 +0800
commit50bb6e33d13237f71812e81a6a13ba5ba0693c8f (patch)
treead7924c4e07a3748b1b83fbe57d8f7231f7635a4 /components/libc/compilers/common/SConscript
parentc8ee4cc67dd1815d1b0ead1bcd24156da6ab87de (diff)
parentf7548b934e210ea66e2734c3c6abbddcd1605f11 (diff)
Merge pull request #5212 from mysterywolf/posix
[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folder
Diffstat (limited to 'components/libc/compilers/common/SConscript')
-rw-r--r--components/libc/compilers/common/SConscript7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript
index fbdb2f11ec..b7a6626a36 100644
--- a/components/libc/compilers/common/SConscript
+++ b/components/libc/compilers/common/SConscript
@@ -6,18 +6,15 @@ src = []
cwd = GetCurrentDir()
group = []
CPPPATH = [cwd]
+CPPDEFINES = []
if GetDepend('RT_USING_LIBC'):
src += Glob('*.c')
- if GetDepend('RT_USING_POSIX') == False:
- SrcRemove(src, ['unistd.c', 'delay.c'])
elif GetDepend('RT_LIBC_USING_TIME'):
src += Glob('time.c')
if rtconfig.CROSS_TOOL == 'keil':
- CPPDEFINES = ['__CLK_TCK=RT_TICK_PER_SECOND']
-else:
- CPPDEFINES = []
+ CPPDEFINES += ['__CLK_TCK=RT_TICK_PER_SECOND']
group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)