diff options
Diffstat (limited to 'components/libc/compilers/newlib/SConscript')
| -rw-r--r-- | components/libc/compilers/newlib/SConscript | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/libc/compilers/newlib/SConscript b/components/libc/compilers/newlib/SConscript index 574c2a8d1f..06e5faad09 100644 --- a/components/libc/compilers/newlib/SConscript +++ b/components/libc/compilers/newlib/SConscript @@ -1,7 +1,9 @@ from building import * +Import('rtconfig') -src = Glob('*.c') +src = Glob('*.c') cwd = GetCurrentDir() +group = [] CPPPATH = [cwd] CPPDEFINES = ['RT_USING_NEWLIB'] @@ -12,7 +14,8 @@ CPPDEFINES = ['RT_USING_NEWLIB'] # been referenced. So setting this won't result in bigger text size. LIBS = ['c', 'm'] -group = DefineGroup('newlib', src, depend = ['RT_USING_LIBC'], - CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS) +if rtconfig.PLATFORM == 'gcc': + group = DefineGroup('newlib', src, depend = ['RT_USING_LIBC'], + CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS) Return('group') |
