Преглед изворни кода

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

BernardXiong пре 3 година
родитељ
комит
edf3f8db9e
1 измењених фајлова са 4 додато и 1 уклоњено
  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']
         CPPDEFINES = ['__STDC_ISO_10646__=201206L', '_STDC_PREDEF_H']
         LIBS       = ['c', 'gcc']
         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'
             CFLAGS     = ' -nostdinc'
             CPPPATH    = [cwd, cwd + '/libc/include']
             CPPPATH    = [cwd, cwd + '/libc/include']
             LIBPATH    = [cwd + '/libc/lib']
             LIBPATH    = [cwd + '/libc/lib']