From 6ac213d62275676c1ba79039c6fd2683e2877662 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 14 May 2018 21:37:11 +0800 Subject: Add GCC version detection. Add cconfig.h file for different version of GCC, which is automatically detected and generated by scons script. --- components/libc/compilers/armlibc/SConscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/libc/compilers/armlibc/SConscript') diff --git a/components/libc/compilers/armlibc/SConscript b/components/libc/compilers/armlibc/SConscript index 8968abaa82..081efa7358 100644 --- a/components/libc/compilers/armlibc/SConscript +++ b/components/libc/compilers/armlibc/SConscript @@ -8,6 +8,12 @@ group = [] CPPPATH = [cwd] CPPDEFINES = ['RT_USING_ARM_LIBC'] +if GetDepend('RT_USING_DFS') == False: + SrcRemove(src, ['stdio.c']) + +if GetDepend('RT_USING_MODULE') == False: + SrcRemove(src, ['libc_syms.c']) + if rtconfig.PLATFORM == 'armcc': group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -- cgit v1.3.1