diff options
| author | Bernard Xiong <[email protected]> | 2014-10-28 03:45:43 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-10-28 03:45:43 +0000 |
| commit | 802c768475b5575192c0b2b5e7802e8d4aebceba (patch) | |
| tree | 730ae3ef21502b04268f164f6e07af09e6a5c6f9 /components/libc/armlibc/SConscript | |
| parent | 372926477b31674db1475fd3e88871fb2af9289f (diff) | |
[LIBC] Use RT_USING_LIBC instead of libs option for each compiler
Diffstat (limited to 'components/libc/armlibc/SConscript')
| -rw-r--r-- | components/libc/armlibc/SConscript | 14 |
1 files changed, 5 insertions, 9 deletions
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') |
