4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 02:59:23 +08:00
bernard.xiong@gmail.com 50b5e18dce fixed newlib building script error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1748 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-10 12:45:38 +00:00

17 lines
460 B
Python

Import('rtconfig')
from building import *
if GetDepend('RT_USING_NEWLIB') and 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')