diff options
Diffstat (limited to 'components/libc/newlib/SConscript')
| -rw-r--r-- | components/libc/newlib/SConscript | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/components/libc/newlib/SConscript b/components/libc/newlib/SConscript index d8ce850d0f..72f56838ce 100644 --- a/components/libc/newlib/SConscript +++ b/components/libc/newlib/SConscript @@ -1,8 +1,17 @@ -Import('RTT_ROOT')
-from building import *
-
-src = Glob('*.c')
-CPPPATH = [RTT_ROOT + '/components/libc/newlib']
-group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH)
-
-Return('group')
+Import('rtconfig') + +from building import * + +if rtconfig.CROSS_TOOL != 'gcc': + print '================ERROR============================' + print 'Please use GNU GCC compiler if using newlib' + print '=================================================' + exit(0) + +cwd = GetCurrentDir() +src = Glob('*.c') +CPPPATH = [cwd] + +group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH) + +Return('group') |
