Skip to content
Permalink
Browse files

CMakeLists.txt: Call toolchain_cc_nostdinc() at the end

To let any other zephyr_system_include_directories() directives
act first and get these paths in an order allowing Zephyr's stuff
override compiler headers.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
  • Loading branch information...
pfalcon authored and carlescufi committed Jun 6, 2019
1 parent ff6432e commit 1c6a7d78efdcbeea55112ef6013e36ce72ba8fa3
Showing with 5 additions and 3 deletions.
  1. +5 −3 CMakeLists.txt
@@ -214,9 +214,6 @@ if(CONFIG_MISRA_SANE)
zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:${CPP_MISRA_SANE_FLAG}>)
endif()

# @Intent: Set compiler specific flags for standard C includes
toolchain_cc_nostdinc()

# @Intent: Set compiler specific macro inclusion of AUTOCONF_H
toolchain_cc_imacros(${AUTOCONF_H})

@@ -1497,3 +1494,8 @@ if(CONFIG_BOARD_DEPRECATED)
removed in version ${CONFIG_BOARD_DEPRECATED}"
)
endif()

# @Intent: Set compiler specific flags for standard C includes
# Done at the very end, so any other system includes which may
# be added by Zephyr components were first in list.
toolchain_cc_nostdinc()

0 comments on commit 1c6a7d7

Please sign in to comment.
You can’t perform that action at this time.