From 802c768475b5575192c0b2b5e7802e8d4aebceba Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Tue, 28 Oct 2014 03:45:43 +0000 Subject: [LIBC] Use RT_USING_LIBC instead of libs option for each compiler --- components/libc/armlibc/SConscript | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'components/libc/armlibc/SConscript') diff --git a/components/libc/armlibc/SConscript b/components/libc/armlibc/SConscript index 11aba6b4f8..29f342a1c1 100644 --- a/components/libc/armlibc/SConscript +++ b/components/libc/armlibc/SConscript @@ -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') +cwd = GetCurrentDir() + CPPPATH = [cwd] +CPPDEFINES = ['RT_USING_ARM_LIBC'] -group = DefineGroup('libc', src, depend = ['RT_USING_ARM_LIBC'], CPPPATH = CPPPATH) +group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], + CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') -- cgit v1.3.1