[LIBC] remove minilibc when compiling simulator under Linux

This commit is contained in:
Bernard Xiong 2016-04-24 19:59:48 +08:00
parent 255f8b7c34
commit fd7a65b4be
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef _WIN32
#include <stdlib.h>
#endif
#include <rtthread.h> #include <rtthread.h>
#include <dfs_def.h> #include <dfs_def.h>

View File

@ -14,7 +14,7 @@ if GetDepend('RT_USING_LIBC'):
elif rtconfig.PLATFORM == 'iar': elif rtconfig.PLATFORM == 'iar':
objs = objs + SConscript('dlib/SConscript') objs = objs + SConscript('dlib/SConscript')
else: else:
if rtconfig.PLATFORM == 'gcc': if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
objs = objs + SConscript('minilibc/SConscript') objs = objs + SConscript('minilibc/SConscript')
Return('objs') Return('objs')