style(rename): sanitizer_add_compiler_flags -> sanitizer_add_compiler_and_linker_flags

Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
This commit is contained in:
Ole Petter
2023-02-22 14:27:06 +01:00
parent 660bea7650
commit 73dc8de251
4 changed files with 4 additions and 4 deletions

@ -1,7 +1,7 @@
include(cmake/helper.cmake)
if (CMAKE_BUILD_TYPE STREQUAL "ASan")
sanitizer_add_compiler_flags(ASAN
sanitizer_add_compiler_and_linker_flags(ASAN
"-fsanitize=address -fno-omit-frame-pointer -fsanitize-address-use-after-scope"
"-fsanitize=address")
endif()

@ -1,6 +1,6 @@
function (sanitizer_add_compiler_flags CONFIG SANITIZER_BUILD_FLAGS SANITIZER_SHARED_LINKER_FLAGS)
function (sanitizer_add_compiler_and_linker_flags CONFIG SANITIZER_BUILD_FLAGS SANITIZER_SHARED_LINKER_FLAGS)
message (STATUS "Adding the compiler flags flags: ${SANITIZER_BUILD_FLAGS}")
message (STATUS "Adding the linked flags: ${SANITIZER_SHARED_LINKER_FLAGS}")

@ -1,7 +1,7 @@
include(cmake/helper.cmake)
if (CMAKE_BUILD_TYPE STREQUAL "ThreadSan")
sanitizer_add_compiler_flags(THREADSAN
sanitizer_add_compiler_and_linker_flags(THREADSAN
"-fsanitize=thread -fPIE -fpie"
"-fsanitize=thread")
endif()

@ -1,7 +1,7 @@
include(cmake/helper.cmake)
if (CMAKE_BUILD_TYPE STREQUAL "UndefSan")
sanitizer_add_compiler_flags(UNDEFSAN
sanitizer_add_compiler_and_linker_flags(UNDEFSAN
"-fsanitize=undefined"
"-fsanitize=undefined")
endif()