summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-10-10 12:45:38 +0000
committer[email protected] <[email protected]>2011-10-10 12:45:38 +0000
commit50b5e18dcebf1c5bbb0f89358063d4d77af019ad (patch)
tree2040683b633477dcbfa566692950ccd6df271a7a /components
parent7af3914228edbda49ef1946c5efdf1bf8127314d (diff)
fixed newlib building script error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1748 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/libc/newlib/SConscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/libc/newlib/SConscript b/components/libc/newlib/SConscript
index 72f56838ce..28d66bc0fe 100644
--- a/components/libc/newlib/SConscript
+++ b/components/libc/newlib/SConscript
@@ -1,8 +1,7 @@
Import('rtconfig')
-
from building import *
-if rtconfig.CROSS_TOOL != 'gcc':
+if GetDepend('RT_USING_NEWLIB') and rtconfig.CROSS_TOOL != 'gcc':
print '================ERROR============================'
print 'Please use GNU GCC compiler if using newlib'
print '================================================='