浏览代码

fixed newlib building script error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1748 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong@gmail.com 13 年之前
父节点
当前提交
50b5e18dce
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      components/libc/newlib/SConscript

+ 1 - 2
components/libc/newlib/SConscript

@@ -1,8 +1,7 @@
 Import('rtconfig')
 Import('rtconfig')
-
 from building import *
 from building import *
 
 
-if rtconfig.CROSS_TOOL != 'gcc':
+if GetDepend('RT_USING_NEWLIB') and rtconfig.CROSS_TOOL != 'gcc':
     print '================ERROR============================'
     print '================ERROR============================'
     print 'Please use GNU GCC compiler if using newlib'
     print 'Please use GNU GCC compiler if using newlib'
     print '================================================='
     print '================================================='