[UBSan] Introduce UBSAN_OPTIONS environment variable.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:32:55 +0000 (18:32 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:32:55 +0000 (18:32 +0000)
commitcd875aa55147ad40f95aab2fe089c498e23ad403
treead943c78c493ffd5b1f4e676eafe71745fa582fa
parentd75303581f0cb932024e4e4cda34cab3209927b0
[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.

llvm-svn: 213782
compiler-rt/lib/ubsan/ubsan_diag.cc
compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp