Commit b841b431 authored by Campbell Barton's avatar Campbell Barton
Browse files

cmake-flags: Add sanitize_int_overflow

parent 871b1cc4
......@@ -61,6 +61,10 @@ PRESETS = {
"CMAKE_CXX_FLAGS": (("-fsanitize=float-cast-overflow",), ()),
"CMAKE_C_FLAGS": (("-fsanitize=float-cast-overflow",), ()),
},
"sanitize_int_overflow": {
"CMAKE_CXX_FLAGS": (("-fsanitize=signed-integer-overflow",), ()),
"CMAKE_C_FLAGS": (("-fsanitize=signed-integer-overflow",), ()),
},
"sanitize_bool": {
"CMAKE_CXX_FLAGS": (("-fsanitize=bool",), ()),
"CMAKE_C_FLAGS": (("-fsanitize=bool",), ()),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment