diff options
| author | Bernard Xiong <[email protected]> | 2018-05-14 21:37:11 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-05-14 21:37:11 +0800 |
| commit | 6ac213d62275676c1ba79039c6fd2683e2877662 (patch) | |
| tree | 0ddc8744bd9173c390a42456f78a6da50d3a313e /components/libc/compilers/armlibc/SConscript | |
| parent | ab33cd3110a4b303c7c934f3da84f9c64c4ebb73 (diff) | |
Add GCC version detection.
Add cconfig.h file for different version of GCC, which is automatically
detected and generated by scons script.
Diffstat (limited to 'components/libc/compilers/armlibc/SConscript')
| -rw-r--r-- | components/libc/compilers/armlibc/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
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) |
