mirror of
https://github.com/mendersoftware/mender.git
synced 2025-03-15 19:31:14 +00:00
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:
@ -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()
|
||||
|
Reference in New Issue
Block a user