diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-09 23:59:40 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-09 23:59:40 +0000 |
commit | 61bdb4de973fc44237c450d0a1cc8354fb9f9940 (patch) | |
tree | 0a9ddaed58cb2ed686897dc652baf406a6a09c85 /lib | |
parent | df665b91662086e43f0152182bc9a3366d58f770 (diff) | |
download | compiler-rt-61bdb4de973fc44237c450d0a1cc8354fb9f9940.tar.gz |
[Sanitizer] Remove SANITIZER_NEEDS_SEGV from shared sanitizer_common headers.
Otherwise, it can be accidentally redefined when we build specific sanitizer
runtime. This definition should be provided only once - when we build
sanitizer_common library.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.cc | 5 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_internal_defs.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.cc b/lib/sanitizer_common/sanitizer_flags.cc index 91c0f2370..0a70e1681 100644 --- a/lib/sanitizer_common/sanitizer_flags.cc +++ b/lib/sanitizer_common/sanitizer_flags.cc @@ -29,6 +29,11 @@ struct FlagDescription { IntrusiveList<FlagDescription> flag_descriptions; +// If set, the tool will install its own SEGV signal handler by default. +#ifndef SANITIZER_NEEDS_SEGV +# define SANITIZER_NEEDS_SEGV 1 +#endif + void SetCommonFlagsDefaults(CommonFlags *f) { f->symbolize = true; f->external_symbolizer_path = 0; diff --git a/lib/sanitizer_common/sanitizer_internal_defs.h b/lib/sanitizer_common/sanitizer_internal_defs.h index 9db5f8f20..c8985b49e 100644 --- a/lib/sanitizer_common/sanitizer_internal_defs.h +++ b/lib/sanitizer_common/sanitizer_internal_defs.h @@ -34,11 +34,6 @@ # define SANITIZER_SUPPORTS_WEAK_HOOKS 0 #endif -// If set, the tool will install its own SEGV signal handler. -#ifndef SANITIZER_NEEDS_SEGV -# define SANITIZER_NEEDS_SEGV 1 -#endif - // GCC does not understand __has_feature #if !defined(__has_feature) # define __has_feature(x) 0 |