[LIBC] Use RT_USING_LIBC instead of libs option for each compiler

This commit is contained in:
Bernard Xiong
2014-10-28 03:45:43 +00:00
parent 372926477b
commit 802c768475
4 changed files with 28 additions and 32 deletions
+6 -10
View File
@@ -1,16 +1,12 @@
Import('rtconfig')
from building import *
if GetDepend('RT_USING_ARM_LIBC') and rtconfig.CROSS_TOOL != 'keil':
print '================ERROR=============================='
print 'Please use ARM CC compiler if using ARM C library'
print '==================================================='
exit(0)
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
cwd = GetCurrentDir()
group = DefineGroup('libc', src, depend = ['RT_USING_ARM_LIBC'], CPPPATH = CPPPATH)
CPPPATH = [cwd]
CPPDEFINES = ['RT_USING_ARM_LIBC']
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')