From fd7a65b4becb74f8e78802aeadbe908780d973f3 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 24 Apr 2016 19:59:48 +0800 Subject: [PATCH] [LIBC] remove minilibc when compiling simulator under Linux --- bsp/simulator/drivers/sd_sim.c | 4 +++- components/libc/SConscript | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bsp/simulator/drivers/sd_sim.c b/bsp/simulator/drivers/sd_sim.c index ea2aa223ca..866acecd4f 100755 --- a/bsp/simulator/drivers/sd_sim.c +++ b/bsp/simulator/drivers/sd_sim.c @@ -1,6 +1,8 @@ #include -#include #include +#ifdef _WIN32 +#include +#endif #include #include diff --git a/components/libc/SConscript b/components/libc/SConscript index 4ca00c5b86..4ed1dde123 100644 --- a/components/libc/SConscript +++ b/components/libc/SConscript @@ -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')