From 005828eba71b5e577c49cf5af61accc028b0ae1a Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 27 Nov 2023 00:15:36 +0800 Subject: [nano] rt-thread susport nano option --- components/libc/SConscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'components/libc/SConscript') diff --git a/components/libc/SConscript b/components/libc/SConscript index 4c815c49b8..6042b5d5e5 100644 --- a/components/libc/SConscript +++ b/components/libc/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_NANO'): + 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