Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b8a6dc4

Browse files
committed
Clang sanitizer: remove unaligned address check
1 parent b88128d commit b8a6dc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ if (CLR_CMAKE_PLATFORM_UNIX)
340340
message("Address Sanitizer (asan) enabled")
341341
endif ()
342342
if (${__UBSAN_POS} GREATER -1)
343-
set(CLR_SANITIZE_CXX_FLAGS "${CLR_SANITIZE_CXX_FLAGS}undefined")
343+
# all sanitizier flags are enabled except alignment (due to heavy use of __unaligned modifier)
344+
set(CLR_SANITIZE_CXX_FLAGS "${CLR_SANITIZE_CXX_FLAGS}bool,bounds,enum,float-cast-overflow,float-divide-by-zero,function,integer,nonnull-attribute,null,object-size,return,returns-nonnull-attribute,shift,unreachable,vla-bound,vptr")
344345
set(CLR_SANITIZE_LINK_FLAGS "${CLR_SANITIZE_LINK_FLAGS}undefined")
345346
message("Undefined Behavior Sanitizer (ubsan) enabled")
346347
endif ()

0 commit comments

Comments
 (0)