From 15fa3084c3d9365775a091096934d449e57bb4a7 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 1 Mar 2018 18:12:49 +0800 Subject: [PATCH] [Kernel] include finsh.h file in rtthread.h when RT_USING_FINSH enable --- include/rtthread.h | 4 ++++ tools/building.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/rtthread.h b/include/rtthread.h index c92f7f012f..7671c63cd6 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -563,6 +563,10 @@ void rt_assert_set_hook(void (*hook)(const char *ex, const char *func, rt_size_t void rt_assert_handler(const char *ex, const char *func, rt_size_t line); #endif /* RT_DEBUG */ +#ifdef RT_USING_FINSH +#include +#endif + /**@}*/ #ifdef __cplusplus diff --git a/tools/building.py b/tools/building.py index 2a2f086b67..42cb37dc4f 100644 --- a/tools/building.py +++ b/tools/building.py @@ -141,7 +141,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ env['LIBDIRPREFIX'] = '--userlibpath ' if rtconfig.PLATFORM == 'gcc': - if env['LINKFLAGS'].find('nano.specs'): + if str(env['LINKFLAGS']).find('nano.specs'): env.AppendUnique(CPPDEFINES = ['_REENT_SMALL']) # patch for win32 spawn -- GitLab