Explorar o código

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

BernardXiong %!s(int64=3) %!d(string=hai) anos
pai
achega
edf3f8db9e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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']