mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-07 11:52:40 +00:00
Update the files which contain no license information with the 'Apache-2.0' SPDX license identifier. Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of Zephyr, which is Apache version 2. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
16 lines
484 B
CMake
16 lines
484 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# See root CMakeLists.txt for description and expectations of this macro
|
|
macro(toolchain_cc_security_fortify)
|
|
|
|
if(NOT CONFIG_NO_OPTIMIZATIONS)
|
|
# _FORTIFY_SOURCE: Detect common-case buffer overflows for certain functions
|
|
# _FORTIFY_SOURCE=1 : Compile-time checks (requires -O1 at least)
|
|
# _FORTIFY_SOURCE=2 : Additional lightweight run-time checks
|
|
zephyr_compile_definitions(
|
|
_FORTIFY_SOURCE=2
|
|
)
|
|
endif()
|
|
|
|
endmacro()
|