zephyr/cmake/linker/ld/target_cpp.cmake
Al Semjonovs 955d85aa67 libc: picolibc: Fix picolibc to allow third party CPP
Picolibc dependencies limit ability to use third party minimal
implementations of CPP when enablng PICOLIBC_USE_MODULE.

Signed-off-by: Al Semjonovs <asemjonovs@google.com>
2023-10-09 15:05:39 +03:00

14 lines
250 B
CMake

# SPDX-License-Identifier: Apache-2.0
# See root CMakeLists.txt for description and expectations of these macros
macro(toolchain_ld_cpp)
if(NOT CONFIG_EXTERNAL_MODULE_LIBCPP)
zephyr_link_libraries(
-lstdc++
)
endif()
endmacro()