From edf3f8db9e83b03f8a68c72709211d3f7cd8bc58 Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Mon, 5 Sep 2022 17:57:55 +0800 Subject: [PATCH] [libc] force to use libc in toolchains when enable rt-smart --- components/libc/compilers/musl/SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/libc/compilers/musl/SConscript b/components/libc/compilers/musl/SConscript index c9ede8d4f4..5bf9f40e67 100644 --- a/components/libc/compilers/musl/SConscript +++ b/components/libc/compilers/musl/SConscript @@ -10,7 +10,10 @@ if rtconfig.PLATFORM == 'gcc' and GetDepend('RT_USING_MUSL') and not GetDepend(' CPPDEFINES = ['__STDC_ISO_10646__=201206L', '_STDC_PREDEF_H'] LIBS = ['c', 'gcc'] - if os.path.exists(os.path.join(cwd, 'libc', 'lib', 'libc.a')): + # if os.path.exists(os.path.join(cwd, 'libc', 'lib', 'libc.a')): + # force to use libc in toolchains + + if False: CFLAGS = ' -nostdinc' CPPPATH = [cwd, cwd + '/libc/include'] LIBPATH = [cwd + '/libc/lib'] -- Gitee