File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
components/libc/cplusplus Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ menuconfig RT_USING_CPLUSPLUS
4
4
5
5
if RT_USING_CPLUSPLUS
6
6
7
+ config RT_USING_CPP_MULTITHREAD
8
+ bool "Enable RT-Thread C++ thread feature support"
9
+ default n
10
+
7
11
config RT_USING_CPLUSPLUS11
8
12
bool "Enable c++11 threading feature support"
9
13
default n
Original file line number Diff line number Diff line change 3
3
from building import *
4
4
Import ('rtconfig' )
5
5
6
- cwd = GetCurrentDir ()
7
- src = Glob ('*.cpp' ) + Glob ('*.c' )
6
+ cwd = GetCurrentDir ()
7
+ src = Split ('''
8
+ cxx_crt_init.c
9
+ ''' )
8
10
CPPPATH = [cwd ]
9
11
12
+ if GetDepend ('RT_USING_CPP_MULTITHREAD' ):
13
+ src += Glob ('*.cpp' )
10
14
if GetDepend ('RT_USING_CPLUSPLUS11' ):
11
15
src += Glob ('cpp11/*.cpp' ) + Glob ('cpp11/*.c' )
12
16
if rtconfig .PLATFORM in ['armclang' ]:
You can’t perform that action at this time.
0 commit comments