sanitizer: disable "pointer-compare"
This commit is contained in:
parent
84bfa4ae2a
commit
aa7b95facb
@ -7,8 +7,13 @@ if (SANITIZER)
|
||||
|
||||
append_compile_flag("--param max-gcse-memory=167772160")
|
||||
|
||||
append_compile_flag("-fsanitize=pointer-compare")
|
||||
# Don't enable pointer-compare as https://github.com/google/sanitizers/issues/1324
|
||||
# states it isn't production-ready and it results in some link errors under (at least) gcc-11.3
|
||||
# eg, undefined reference to 'std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_high_mark()
|
||||
# See also: https://github.com/cms-sw/cmssw/issues/36480
|
||||
#
|
||||
#append_compile_flag("-fsanitize=pointer-compare")
|
||||
append_compile_flag("-fsanitize=pointer-subtract")
|
||||
|
||||
add_definitions("-D_GLIBCXX_SANITIZE_VECTOR")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user