From 50f041f5c2fb69b06283f54ce4619a08751d9367 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 30 May 2022 18:04:05 -0400 Subject: [Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/cplusplus/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/libc/cplusplus') diff --git a/components/libc/cplusplus/SConscript b/components/libc/cplusplus/SConscript index 325a27f65f..82983fa667 100644 --- a/components/libc/cplusplus/SConscript +++ b/components/libc/cplusplus/SConscript @@ -14,7 +14,7 @@ CPPPATH = [cwd] if rtconfig.PLATFORM == 'armclang' and GetDepend('RT_USING_CPLUSPLUS11'): src += Glob('cpp11/armclang/*.cpp') + Glob('cpp11/armclang/*.c') CPPPATH += [cwd + '/cpp11/armclang'] -elif rtconfig.PLATFORM == 'gcc' and GetDepend('RT_USING_CPLUSPLUS11'): +elif rtconfig.PLATFORM in ['gcc'] and GetDepend('RT_USING_CPLUSPLUS11'): src += Glob('cpp11/gcc/*.cpp') + Glob('cpp11/gcc/*.c') CPPPATH += [cwd + '/cpp11/gcc'] -- cgit v1.3.1