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:
parent
3de03544ff
commit
fc3e80cf6d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue