2019-06-12 20:56:46 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# The intention with this file is, to have a common placeholder for macros
|
|
|
|
# which does not fit into any of the categories defined by the existing
|
|
|
|
# target_xxx.cmake files and which have a fairly high commonality between
|
|
|
|
# toolchains.
|
|
|
|
#
|
|
|
|
# See root CMakeLists.txt for description and expectations of this macro
|
|
|
|
|
2019-07-23 15:00:55 +08:00
|
|
|
macro(toolchain_cc_produce_debug_info)
|
|
|
|
|
|
|
|
zephyr_compile_options(-g) # TODO: build configuration enough?
|
|
|
|
|
|
|
|
endmacro()
|
|
|
|
|
2019-06-12 20:56:46 +08:00
|
|
|
macro(toolchain_cc_nocommon)
|
|
|
|
|
|
|
|
zephyr_compile_options(-fno-common)
|
|
|
|
|
|
|
|
endmacro()
|
2019-06-13 21:33:03 +08:00
|
|
|
|
|
|
|
macro(toolchain_cc_cstd_flag dest_var_name c_std)
|
|
|
|
|
|
|
|
set_ifndef(${dest_var_name} "-std=${c_std}")
|
|
|
|
|
|
|
|
endmacro()
|