Ignore -fsanitize=alignment for UBSAN

Until we fix all occurrences
This commit is contained in:
Andrew Noyes 2019-11-26 19:34:44 -08:00
parent 5d27419142
commit 30908b0bb1
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,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")