diff --git a/cmake/compiler/gcc/compiler_flags.cmake b/cmake/compiler/gcc/compiler_flags.cmake index 6cd89422f1b..38d2b471690 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -111,6 +111,7 @@ set_compiler_property(PROPERTY cstd -std=) if (NOT CONFIG_NEWLIB_LIBC AND NOT COMPILER STREQUAL "xcc" AND + NOT ZEPHYR_TOOLCHAIN_VARIANT STREQUAL "espressif" AND NOT CONFIG_NATIVE_APPLICATION) set_compiler_property(PROPERTY nostdinc -nostdinc) set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})