zephyr/cmake/compiler
Daniel Leung 146e22fca4 cmake: xcc/xt-clang: fix for proper system include paths
Although xt-clang is based on clang, for some reason, it still
lists xcc system include path as the first search path (e.g.
for stddef.h), and the clang system include path as last. This
creates a big issue when the code starts to use any standards
past C89 (since xcc is based on GCC 4.2). We can use compiler
property nostdin_include to add -isystem to compiler options.
However, some modules (e.g. picolibcs) somehow ignore this.
So we also need to forcibly do add_compile_options() to make
sure the clang system include path is placed before the xcc
system include path.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-06-11 16:10:53 -07:00
..
arcmwdt cmake: Fix compilation options for kobject_hash*.c 2025-05-31 07:02:36 -04:00
armclang cmake: compiler: Remove -fshort-enums 2025-06-06 11:52:22 +02:00
clang cmake: compiler: Remove -fshort-enums 2025-06-06 11:52:22 +02:00
gcc cmake: compiler/gcc: skip nostdinc property for xt-clang 2025-06-11 16:10:53 -07:00
host-gcc
iar iar: toolchain: arm: Fix FPU settings for CM55 and CM85 2025-04-14 13:06:41 +02:00
icx cmake: toolchain: remove obsolete and unused macros 2024-09-04 21:26:59 +02:00
xcc cmake: xcc/xt-clang: fix for proper system include paths 2025-06-11 16:10:53 -07:00
xt-clang cmake: xcc/xt-clang: fix for proper system include paths 2025-06-11 16:10:53 -07:00
compiler_features.cmake
compiler_flags_template.cmake cmake: Fix compilation options for kobject_hash*.c 2025-05-31 07:02:36 -04:00