diff options
| author | bernard <[email protected]> | 2017-10-13 12:44:54 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-13 12:44:54 +0800 |
| commit | 8bdf993bfc38f9b652a7af60cb071c708ad7dea6 (patch) | |
| tree | e9a17b508d1e348b4b5cfa0b18016a29514e3fc1 /components/libc/compilers/newlib/SConscript | |
| parent | 444915d1eac7eb1059a1a5b02eb8c0393ce4a79c (diff) | |
[libc] Build correct SConscript file.
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') |
