[UBSan] Introduce UBSAN_OPTIONS environment variable.
commitbb7c4cb9e8f061711b833931b3f4197af5d9a090
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:32:55 +0000 (23 18:32 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:32:55 +0000 (23 18:32 +0000)
tree18f0f84ff0a5dcd10b6aed8960309fdce38f8de2
parent01a753c9b96979d60e5ec35e3d768d8f9b052261
[UBSan] Introduce UBSAN_OPTIONS environment variable.

If UBSan is run in a standalone mode (w/o any other sanitizer), it
still uses functions from sanitizer_common, some of which depend on
the value of runtime flags. Allow to override the default values of these
flags with UBSAN_OPTIONS variable. In particular, UBSAN_OPTIONS=symbolize=0
can be used to turn off online symbolization.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213782 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ubsan/ubsan_diag.cc
test/ubsan/TestCases/TypeCheck/Function/function.cpp