Browse Source

[libc] force to use libc in toolchains when enable rt-smart

BernardXiong 3 years ago
parent
commit
edf3f8db9e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      components/libc/compilers/musl/SConscript

+ 4 - 1
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']