From 8bdf993bfc38f9b652a7af60cb071c708ad7dea6 Mon Sep 17 00:00:00 2001 From: bernard Date: Fri, 13 Oct 2017 12:44:54 +0800 Subject: [libc] Build correct SConscript file. --- components/libc/compilers/armlibc/SConscript | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'components/libc/compilers/armlibc/SConscript') diff --git a/components/libc/compilers/armlibc/SConscript b/components/libc/compilers/armlibc/SConscript index 29f342a1c1..8968abaa82 100644 --- a/components/libc/compilers/armlibc/SConscript +++ b/components/libc/compilers/armlibc/SConscript @@ -1,12 +1,15 @@ from building import * +Import('rtconfig') -src = Glob('*.c') -cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') +cwd = GetCurrentDir() +group = [] CPPPATH = [cwd] CPPDEFINES = ['RT_USING_ARM_LIBC'] -group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], - CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) +if rtconfig.PLATFORM == 'armcc': + group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], + CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') -- cgit v1.3.1