Skip to content

Commit f7b3143

Browse files
dcpleungdkalowsk
authored andcommitted
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>
1 parent 26ea29d commit f7b3143

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
@@ -116,6 +116,7 @@ set_compiler_property(PROPERTY cstd -std=)
116116
if (NOT CONFIG_NEWLIB_LIBC AND
117117
NOT (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_USE_MODULE) AND
118118
NOT COMPILER STREQUAL "xcc" AND
119+
NOT COMPILER STREQUAL "xt-clang" AND
119120
NOT CONFIG_HAS_ESPRESSIF_HAL AND
120121
NOT CONFIG_NATIVE_BUILD)
121122
set_compiler_property(PROPERTY nostdinc -nostdinc)

0 commit comments

Comments
 (0)