Skip to content

Commit

Permalink
Ignore -fsanitize=alignment for UBSAN
Browse files Browse the repository at this point in the history
Until we fix all occurrences
  • Loading branch information
atn34 committed Dec 3, 2019
1 parent 4022ca1 commit 1721658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/ConfigureCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ else()
if(USE_UBSAN)
add_compile_options(
-fsanitize=undefined
-fno-sanitize=alignment
-DUSE_SANITIZER)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fsanitize=undefined")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=undefined")
Expand Down

0 comments on commit 1721658

Please sign in to comment.