Skip to content

Commit

Permalink
[LIBC] remove minilibc when compiling simulator under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardXiong committed Apr 24, 2016
1 parent 255f8b7 commit fd7a65b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bsp/simulator/drivers/sd_sim.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <stdlib.h>
#endif

#include <rtthread.h>
#include <dfs_def.h>
Expand Down
2 changes: 1 addition & 1 deletion components/libc/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if GetDepend('RT_USING_LIBC'):
elif rtconfig.PLATFORM == 'iar':
objs = objs + SConscript('dlib/SConscript')
else:
if rtconfig.PLATFORM == 'gcc':
if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
objs = objs + SConscript('minilibc/SConscript')

Return('objs')

0 comments on commit fd7a65b

Please sign in to comment.