diff options
| author | Meco Jianting Man <[email protected]> | 2021-06-13 16:19:59 +0800 |
|---|---|---|
| committer | Meco Jianting Man <[email protected]> | 2021-06-13 16:19:59 +0800 |
| commit | 4fd407461793613fd2f0fc74f85b194b68df9447 (patch) | |
| tree | 46c71c9be7294a5d9870f83c4f2edb4a28b75729 /components/libc/compilers/common/none-gcc/SConscript | |
| parent | fbcaa667f87be5c5a3e1502d12facd24ca5b2234 (diff) | |
| parent | b24447a60a6941568d58dd1ca358951674924ed2 (diff) | |
Merge branch 'RT-Thread:master' into ioctl
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') |
