diff options
| author | Bernard Xiong <[email protected]> | 2014-10-30 07:22:34 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-10-30 07:22:34 +0800 |
| commit | a9952648322ee8b99a2f2798408162423d7d0d84 (patch) | |
| tree | c15e841a4975846c9ff84da4fa26a370f953001f /components/libc/armlibc/SConscript | |
| parent | 372926477b31674db1475fd3e88871fb2af9289f (diff) | |
| parent | 692e597847c53fe7bb248836f74795eb39e37b0c (diff) | |
Merge pull request #360 from BernardXiong/master
[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') |
