summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/none-gcc/SConscript
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-06-13 16:19:59 +0800
committerMeco Jianting Man <[email protected]>2021-06-13 16:19:59 +0800
commit4fd407461793613fd2f0fc74f85b194b68df9447 (patch)
tree46c71c9be7294a5d9870f83c4f2edb4a28b75729 /components/libc/compilers/common/none-gcc/SConscript
parentfbcaa667f87be5c5a3e1502d12facd24ca5b2234 (diff)
parentb24447a60a6941568d58dd1ca358951674924ed2 (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/SConscript6
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')