summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 '================================================='