mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
build: remove workaround for ancient clang versions
We don't need to support this as it's only required when using AddressSanitizer, meaning it only affects developers.
This commit is contained in:
parent
623dad1a2c
commit
50687e60ae
@ -624,21 +624,11 @@ endif()
|
|||||||
|
|
||||||
if(CLANG_ASAN_UBSAN)
|
if(CLANG_ASAN_UBSAN)
|
||||||
message(STATUS "Enabling Clang address sanitizer and undefined behavior sanitizer for nvim.")
|
message(STATUS "Enabling Clang address sanitizer and undefined behavior sanitizer for nvim.")
|
||||||
check_c_compiler_flag(-fno-sanitize-recover=all SANITIZE_RECOVER_ALL)
|
if(CI_BUILD)
|
||||||
if(SANITIZE_RECOVER_ALL)
|
# Try to recover from all sanitize issues so we get reports about all failures
|
||||||
if(CI_BUILD)
|
set(SANITIZE_RECOVER -fsanitize-recover=all)
|
||||||
# Try to recover from all sanitize issues so we get reports about all failures
|
|
||||||
set(SANITIZE_RECOVER -fsanitize-recover=all) # Clang 3.6+
|
|
||||||
else()
|
|
||||||
set(SANITIZE_RECOVER -fno-sanitize-recover=all) # Clang 3.6+
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
if(CI_BUILD)
|
set(SANITIZE_RECOVER -fno-sanitize-recover=all)
|
||||||
# Try to recover from all sanitize issues so we get reports about all failures
|
|
||||||
set(SANITIZE_RECOVER -fsanitize-recover) # Clang 3.5-
|
|
||||||
else()
|
|
||||||
set(SANITIZE_RECOVER -fno-sanitize-recover) # Clang 3.5-
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
set_property(TARGET nvim APPEND PROPERTY COMPILE_OPTIONS ${SANITIZE_RECOVER} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fsanitize=undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/src/.asan-blacklist)
|
set_property(TARGET nvim APPEND PROPERTY COMPILE_OPTIONS ${SANITIZE_RECOVER} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fsanitize=undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/src/.asan-blacklist)
|
||||||
set_property(TARGET nvim APPEND_STRING PROPERTY LINK_FLAGS "-fsanitize=address -fsanitize=undefined ")
|
set_property(TARGET nvim APPEND_STRING PROPERTY LINK_FLAGS "-fsanitize=address -fsanitize=undefined ")
|
||||||
|
Loading…
Reference in New Issue
Block a user