cmake: Error instead of warning and dropping invalid LLVM_USE_SANITIZER
authorJustin Bogner <mail@justinbogner.com>
Tue, 1 Sep 2015 05:45:07 +0000 (05:45 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 1 Sep 2015 05:45:07 +0000 (05:45 +0000)
commit06fdb3019671e94780d23f8e9446875253f23060
treee58f84f901fcfb83863188fd3d109da8c56732bd
parent10add60748226d67d3a1e4d1a8175f798a053708
cmake: Error instead of warning and dropping invalid LLVM_USE_SANITIZER

Currently, if you call cmake with a typo in an LLVM_USE_SANITIZER
value, there's a cmake warning and the build goes on with no
sanitizers at all. This isn't a good behaviour, since cmake warnings
are fairly easy to miss and the resulting behaviour is that it looks
like the build is sanitizer clean.

Upgrade these warnings to errors so misconfigurations are more
obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246531 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake