summaryrefslogtreecommitdiff
path: root/components/libc/compilers/newlib/SConscript
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2021-11-10 16:01:38 +0800
committerWayne Lin <[email protected]>2021-11-10 16:01:38 +0800
commit9b44e57a6022b8eb46eda7037b719ec918fdcc55 (patch)
tree26be9facf0f37d1c38b9e4b6e4abc99d6f8b5a8d /components/libc/compilers/newlib/SConscript
parent37f5236dfa45b98d02e867536a10ac0b6622b80b (diff)
parentfdbaa2a808d12d522ad90702795c08ae8443aab9 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'components/libc/compilers/newlib/SConscript')
-rw-r--r--components/libc/compilers/newlib/SConscript29
1 files changed, 0 insertions, 29 deletions
diff --git a/components/libc/compilers/newlib/SConscript b/components/libc/compilers/newlib/SConscript
deleted file mode 100644
index 542cdecd40..0000000000
--- a/components/libc/compilers/newlib/SConscript
+++ /dev/null
@@ -1,29 +0,0 @@
-from building import *
-Import('rtconfig')
-
-src = []
-cwd = GetCurrentDir()
-group = []
-LIBS = []
-CPPDEFINES = []
-CPPPATH = [cwd]
-
-if rtconfig.PLATFORM == 'gcc':
- if GetDepend('RT_USING_LIBC'):
- CPPDEFINES += ['RT_USING_NEWLIB']
- # link with libc and libm:
- # libm is a frequently used lib. Newlib is compiled with -ffunction-sections in
- # recent GCC tool chains. The linker would just link in the functions that have
- # been referenced. So setting this won't result in bigger text size.
- LIBS += ['c', 'm']
-
- src += Glob('*.c')
- SrcRemove(src, ['minilib.c'])
- if GetDepend('RT_USING_MODULE') == False:
- SrcRemove(src, ['libc_syms.c'])
- else:
- src += ['minilib.c']
-
- group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
-
-Return('group')