summaryrefslogtreecommitdiff
path: root/components/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'components/SConscript')
-rw-r--r--components/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/SConscript b/components/SConscript
index f8b5513c52..46ae96cfb3 100644
--- a/components/SConscript
+++ b/components/SConscript
@@ -5,8 +5,12 @@ Import('rtconfig')
# build each components
objs = ''
-if 'RT_USING_MINILIBC' in dir(rtconfig) and rtconfig.RT_USING_MINILIBC:
- objs = objs + SConscript('libc/minilibc/SConscript')
+if rtconfig.CROSS_TOOL == 'gcc':
+ if 'RT_USING_NEWLIB' in dir(rtconfig) and rtconfig.RT_USING_NEWLIB:
+ objs = objs + SConscript('libc/newlib/SConscript')
+ else:
+ rtconfig.RT_USING_MINILIBC = True
+ objs = objs + SConscript('libc/minilibc/SConscript')
if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
objs = objs + SConscript('finsh/SConscript')