File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set_compiler_property(PROPERTY nostdinc_include)
11
11
# For C++ code, re-add the standard includes directory which was
12
12
# cleared up from nostdinc_inlcude in above lines with no
13
13
# "include-fixed" this time"
14
- if (CONFIG_CPP )
14
+ if (CONFIG_CPP AND NOT CONFIG_XTENSA_LIBC )
15
15
execute_process (
16
16
COMMAND ${CMAKE_C_COMPILER} --print-file-name=include/stddef.h
17
17
OUTPUT_VARIABLE _OUTPUT
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ check_set_linker_property(TARGET linker PROPERTY base
8
8
)
9
9
10
10
if (NOT CONFIG_NATIVE_LIBRARY AND NOT CONFIG_EXTERNAL_MODULE_LIBCPP )
11
- set_property (TARGET linker PROPERTY cpp_base -lstdc++ )
11
+ if (CONFIG_XTENSA_LIBC )
12
+ set_property (TARGET linker PROPERTY cpp_base -lstdc++11 )
13
+ else ()
14
+ set_property (TARGET linker PROPERTY cpp_base -lstdc++ )
15
+ endif ()
12
16
endif ()
13
17
14
18
check_set_linker_property (TARGET linker PROPERTY baremetal
You can’t perform that action at this time.
0 commit comments