[compile](fix) fix ubsan compile error (#25473)
This commit is contained in:
@ -371,7 +371,7 @@ set(CXX_FLAGS_LSAN "${CXX_GCC_FLAGS} -O0 -fsanitize=leak -DLEAK_SANITIZER")
|
||||
|
||||
# Set the flags to the undefined behavior sanitizer, also known as "ubsan"
|
||||
# Turn on sanitizer and debug symbols to get stack traces:
|
||||
set(CXX_FLAGS_UBSAN "${CXX_GCC_FLAGS} -O0 -fno-wrapv -mcmodel=large -fsanitize=undefined -DUNDEFINED_BEHAVIOR_SANITIZER")
|
||||
set(CXX_FLAGS_UBSAN "${CXX_GCC_FLAGS} -O0 -fno-wrapv -mcmodel=medium -fsanitize=undefined -DUNDEFINED_BEHAVIOR_SANITIZER")
|
||||
|
||||
# Set the flags to the thread sanitizer, also known as "tsan"
|
||||
# Turn on sanitizer and debug symbols to get stack traces:
|
||||
|
||||
Reference in New Issue
Block a user