mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
cmake: Use -fno-sanitize-recover=all - the old spelling is deprecated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -462,7 +462,7 @@ if(LLVM_USE_SANITIZER)
|
|||||||
endif()
|
endif()
|
||||||
elseif (LLVM_USE_SANITIZER STREQUAL "Undefined")
|
elseif (LLVM_USE_SANITIZER STREQUAL "Undefined")
|
||||||
append_common_sanitizer_flags()
|
append_common_sanitizer_flags()
|
||||||
append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover"
|
append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
|
||||||
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
||||||
elseif (LLVM_USE_SANITIZER STREQUAL "Thread")
|
elseif (LLVM_USE_SANITIZER STREQUAL "Thread")
|
||||||
append_common_sanitizer_flags()
|
append_common_sanitizer_flags()
|
||||||
@@ -470,7 +470,7 @@ if(LLVM_USE_SANITIZER)
|
|||||||
elseif (LLVM_USE_SANITIZER STREQUAL "Address;Undefined" OR
|
elseif (LLVM_USE_SANITIZER STREQUAL "Address;Undefined" OR
|
||||||
LLVM_USE_SANITIZER STREQUAL "Undefined;Address")
|
LLVM_USE_SANITIZER STREQUAL "Undefined;Address")
|
||||||
append_common_sanitizer_flags()
|
append_common_sanitizer_flags()
|
||||||
append("-fsanitize=address,undefined -fno-sanitize=vptr,function -fno-sanitize-recover"
|
append("-fsanitize=address,undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
|
||||||
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
||||||
else()
|
else()
|
||||||
message(WARNING "Unsupported value of LLVM_USE_SANITIZER: ${LLVM_USE_SANITIZER}")
|
message(WARNING "Unsupported value of LLVM_USE_SANITIZER: ${LLVM_USE_SANITIZER}")
|
||||||
|
Reference in New Issue
Block a user