Skip to content

Commit 342163b

Browse files
authored
Disable UBSAN sanitizing alignment errors (microsoft#5803)
The remaining errors are non-trivial to fix, so let's disable this for now.
1 parent 5ce954c commit 342163b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ if(LLVM_USE_SANITIZER)
519519
endif()
520520
elseif (LLVM_USE_SANITIZER STREQUAL "Undefined")
521521
append_common_sanitizer_flags()
522-
append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
522+
append("-fsanitize=undefined -fno-sanitize=vptr,function,alignment -fno-sanitize-recover=all"
523523
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
524524
elseif (LLVM_USE_SANITIZER STREQUAL "Thread")
525525
append_common_sanitizer_flags()

0 commit comments

Comments
 (0)