Skip to content

Commit

Permalink
Diabled -fsanitize=vptr temporarily (vesoft-inc#1655)
Browse files Browse the repository at this point in the history
Before the third party is rebuilt, we resort to disable `-fsanitize=vptr`, which is a suboption of `-fsanitize=undefined`, as a workaround, so that we can still take advantage of UBSan.
  • Loading branch information
dutor authored Jan 17, 2020
1 parent e2d370a commit 2ced8bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ if(ENABLE_UBSAN)
MESSAGE(FATAL_ERROR "The compiler does not support Undefined Behavior Sanitizer")
endif()
add_compile_options(-fsanitize=undefined -fno-sanitize=alignment)
# TODO(dutor) Remove the following line when RTTI-enabled RocksDB is ready
add_compile_options(-fno-sanitize=vptr)
if(NOT ENABLE_ASAN)
add_compile_options(-g)
add_compile_options(-fno-omit-frame-pointer)
Expand Down

0 comments on commit 2ced8bb

Please sign in to comment.