Skip to content

Commit 5acd82e

Browse files
keith-packardcarlescufi
authored andcommitted
cmake/gcc: Don't use -nostdinc with toolchain picolibc
When using picolibc from the toolchain, we need to use the standard include paths to make sure the library headers are found, especially for libstdc++. Add toolchain picolibc to the list of cases for which this is the case. Signed-off-by: Keith Packard <[email protected]>
1 parent 4b9015d commit 5acd82e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/compiler/gcc/compiler_flags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ set_compiler_property(PROPERTY warning_error_coding_guideline
104104
set_compiler_property(PROPERTY cstd -std=)
105105

106106
if (NOT CONFIG_NEWLIB_LIBC AND
107+
NOT (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_USE_MODULE) AND
107108
NOT COMPILER STREQUAL "xcc" AND
108109
NOT CONFIG_HAS_ESPRESSIF_HAL AND
109110
NOT CONFIG_NATIVE_APPLICATION)

0 commit comments

Comments
 (0)