From f7b314347e073fe284cd9a946cfe9b71a49cab22 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 27 May 2025 11:42:33 -0700 Subject: [PATCH] cmake: compiler/gcc: skip nostdinc property for xt-clang Xtensa toolchain xt-clang needs similar treatment to xcc in terms of nostdinc and nostdinc_include, so add it to the if block to exclude these by default. Signed-off-by: Daniel Leung --- 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 9d4989fea47..92b830cd0d6 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -116,6 +116,7 @@ set_compiler_property(PROPERTY cstd -std=) if (NOT CONFIG_NEWLIB_LIBC AND NOT (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_USE_MODULE) AND NOT COMPILER STREQUAL "xcc" AND + NOT COMPILER STREQUAL "xt-clang" AND NOT CONFIG_HAS_ESPRESSIF_HAL AND NOT CONFIG_NATIVE_BUILD) set_compiler_property(PROPERTY nostdinc -nostdinc)