Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
564 B

# SPDX-License-Identifier: Apache-2.0
# See root CMakeLists.txt for description and expectations of these macros
macro(toolchain_cc_imacros header_file)
# We cannot use the "-imacros foo" form here as CMake insists on
# deduplicating arguments, meaning that subsequent usages after the
# first one will see the "-imacros " part removed.
# gcc and clang support the "--imacros=foo" form but not xcc.
# Let's use the "combined" form (without space) which is supported
# by everyone so far.
zephyr_compile_options(-imacros${header_file})
endmacro()