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 <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2025-05-27 11:42:33 -07:00 committed by Dan Kalowsky
commit f7b314347e

View file

@ -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)