Skip to content

Commit fd7a65b

Browse files
committed
[LIBC] remove minilibc when compiling simulator under Linux
1 parent 255f8b7 commit fd7a65b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bsp/simulator/drivers/sd_sim.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <stdio.h>
2-
#include <stdlib.h>
32
#include <string.h>
3+
#ifdef _WIN32
4+
#include <stdlib.h>
5+
#endif
46

57
#include <rtthread.h>
68
#include <dfs_def.h>

components/libc/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if GetDepend('RT_USING_LIBC'):
1414
elif rtconfig.PLATFORM == 'iar':
1515
objs = objs + SConscript('dlib/SConscript')
1616
else:
17-
if rtconfig.PLATFORM == 'gcc':
17+
if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
1818
objs = objs + SConscript('minilibc/SConscript')
1919

2020
Return('objs')

0 commit comments

Comments
 (0)