From a5ddb722616cdd2fa3315f4c2c417edc02491a0a Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Tue, 11 Aug 2020 11:45:37 +0530 Subject: [PATCH] boards: esp32: add 'nostdinc' expection for espressif toolchain disable nostdinc for espressif tolchain Signed-off-by: Shubham Kulkarni --- cmake/compiler/gcc/compiler_flags.cmake | 1 + 1 file changed, 1 insertion(+) 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})