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/minilibc/SConscript | |
| parent | 444915d1eac7eb1059a1a5b02eb8c0393ce4a79c (diff) | |
[libc] Build correct SConscript file.
Diffstat (limited to 'components/libc/compilers/minilibc/SConscript')
| -rw-r--r-- | components/libc/compilers/minilibc/SConscript | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/libc/compilers/minilibc/SConscript b/components/libc/compilers/minilibc/SConscript index b0c82a7125..da68881349 100644 --- a/components/libc/compilers/minilibc/SConscript +++ b/components/libc/compilers/minilibc/SConscript @@ -1,13 +1,15 @@ -Import('RTT_ROOT') from building import * +Import('rtconfig') -src = Glob('*.c') +src = Glob('*.c') + Glob('*.cpp') cwd = GetCurrentDir() +group = [] CPPPATH = [cwd] CPPDEFINES = ['RT_USING_MINILIBC'] -group = DefineGroup('libc', src, depend = ['RT_USING_MINILIBC'], - CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) +if rtconfig.PLATFORM == 'gcc' and not GetDepend('RT_USING_LIBC'): + group = DefineGroup('libc', src, depend = [''], + CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') |
