diff options
| author | Meco Jianting Man <[email protected]> | 2021-09-14 10:30:51 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-14 10:30:51 -0500 |
| commit | 717120549d126b56c06be6a268945e2065a69038 (patch) | |
| tree | abd6f117aa1f5db0fd9fa12be006f4ed5230505a /components/libc/compilers/common/SConscript | |
| parent | 393d7f44790f9ccdc00bdff56434030160d196f7 (diff) | |
| parent | 065f9586d038c52b50190a436e3d1f8101cdbf94 (diff) | |
Merge branch 'RT-Thread:master' into rtusingheap
Diffstat (limited to 'components/libc/compilers/common/SConscript')
| -rw-r--r-- | components/libc/compilers/common/SConscript | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript index 039e53a0b3..b1982aa329 100644 --- a/components/libc/compilers/common/SConscript +++ b/components/libc/compilers/common/SConscript @@ -9,20 +9,17 @@ CPPPATH = [cwd] if GetDepend('RT_USING_LIBC'): src += Glob('*.c') -else: - if GetDepend('RT_LIBC_USING_TIME'): - src += ['time.c'] - -if GetDepend('RT_USING_POSIX') == False: - SrcRemove(src, ['unistd.c']) + if GetDepend('RT_USING_POSIX') == False: + SrcRemove(src, ['unistd.c', 'delay.c']) +elif GetDepend('RT_LIBC_USING_TIME'): + src += ['time.c'] if rtconfig.CROSS_TOOL == 'keil': CPPDEFINES = ['__CLK_TCK=RT_TICK_PER_SECOND'] else: CPPDEFINES = [] -if GetDepend('RT_USING_LIBC') or GetDepend('RT_LIBC_USING_TIME'): - group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) +group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) list = os.listdir(cwd) for d in list: |
