Explorar o código

[libc] disable minilibc under simulator

Bernard Xiong %!s(int64=7) %!d(string=hai) anos
pai
achega
b4831fbde4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/compilers/minilibc/SConscript

+ 1 - 1
components/libc/compilers/minilibc/SConscript

@@ -8,7 +8,7 @@ group = []
 CPPPATH = [cwd]
 CPPDEFINES = ['RT_USING_MINILIBC']
 
-if rtconfig.PLATFORM == 'gcc' and not GetDepend('RT_USING_LIBC'):
+if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim' and not GetDepend('RT_USING_LIBC'):
     group = DefineGroup('libc', src, depend = [''],
         CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)