From 873fd76b2f180ec42b2d0e50b24cde07a1453975 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 21 Nov 2023 09:39:42 -0500 Subject: [libc] add RT_USING_INTERNAL_LIBC_ONLY macro This option is for RT-Thread Nano version. If select this option, it will not compile components/libc folder and only use tool chain internal libc. Normally, the tool chain internal is only cover ISO standard (e.g. armcc), but some tool chains' internal libc will cover more than ISO standard (e.g. newlib). --- components/libc/compilers/SConscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'components/libc/compilers/SConscript') diff --git a/components/libc/compilers/SConscript b/components/libc/compilers/SConscript index 4c815c49b8..772229b18d 100644 --- a/components/libc/compilers/SConscript +++ b/components/libc/compilers/SConscript @@ -7,9 +7,10 @@ cwd = GetCurrentDir() objs = [] list = os.listdir(cwd) -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) +if not GetDepend('RT_USING_INTERNAL_LIBC_ONLY'): + for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) Return('objs') -- cgit v1.3.1