diff options
| author | guo <[email protected]> | 2021-06-13 09:36:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-13 09:36:29 +0800 |
| commit | b516cbd2ae6f2f111a1aa6a977f9a20bada6305d (patch) | |
| tree | 5802e9e87cc54cb3b80ef58fd4f7e051fe093155 /components/libc/compilers/common/none-gcc/SConscript | |
| parent | 4595ada2ce7c9e7bacad161f19e6e62ca2053afe (diff) | |
| parent | 4c625fcb2fd03823e29dc975cde4d8fe88f48145 (diff) | |
Merge pull request #4790 from mysterywolf/errno
[master][rtlibc] remove libc_errno.h & libc_limits.h
Diffstat (limited to 'components/libc/compilers/common/none-gcc/SConscript')
| -rw-r--r-- | components/libc/compilers/common/none-gcc/SConscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/libc/compilers/common/none-gcc/SConscript b/components/libc/compilers/common/none-gcc/SConscript index c5838f8949..c766c8f82d 100644 --- a/components/libc/compilers/common/none-gcc/SConscript +++ b/components/libc/compilers/common/none-gcc/SConscript @@ -6,8 +6,10 @@ src = [] cwd = GetCurrentDir() CPPPATH = [cwd] group = [] -src += Glob('*.c') + +if GetDepend('RT_USING_LIBC'): + src += Glob('*.c') if rtconfig.PLATFORM != 'gcc' or rtconfig.ARCH == 'sim': - group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH) + group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH) Return('group') |
