1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

guard include with has_feature

clang's sanitizer/msan_interface.h has fallback macros.
It causes redefinition of __msan_unpoison().
This commit is contained in:
NARUSE, Yui 2019-05-01 01:06:13 +09:00
parent 3de03544ff
commit fc3e80cf6d

View file

@ -112,7 +112,9 @@ extern "C" {
#endif
#ifdef HAVE_SANITIZER_MSAN_INTERFACE_H
# include <sanitizer/msan_interface.h>
# if __has_feature(memory_sanitizer)
# include <sanitizer/msan_interface.h>
# endif
#endif
#if !__has_feature(memory_sanitizer)