Browse Source
- newlib needs c standard includes (so no -nostdinc) - xcc needs toolchain headers (so no -nostdinc) - with host gcc: - x86_64 should not build with standard includes (-nostdinc needed) - native_posix should build with standard include (no -nostdinc) .. .. To simplify, abstract this and move it to compilers/toolchains and still depend on what the application wants. Signed-off-by: Anas Nashif <anas.nashif@intel.com>pull/13724/head
5 changed files with 14 additions and 13 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
|
||||
macro(toolchain_cc_nostdinc) |
||||
|
||||
if (NOT CONFIG_NEWLIB_LIBC AND |
||||
NOT COMPILER STREQUAL "xcc" AND |
||||
NOT CONFIG_NATIVE_APPLICATION) |
||||
zephyr_compile_options( -nostdinc) |
||||
endif() |
||||
|
||||
endmacro() |
Loading…
Reference in new issue