_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-divide-by-zero])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer-divide-by-zero])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=null])
- _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=object-size])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=return])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=shift])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=signed-integer-overflow])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unreachable])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unsigned-integer-overflow])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vla-bound])
- _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr])])
+ _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr])
+ AS_IF([test "$ax_cv_c_compiler_vendor" != "clang"],[
+ _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=object-size])
+ ])
+ ])
])
])
])