[cmake] Add LLVM_UBSAN_FLAGS, to allow overriding UBSan flags
authorVedant Kumar <vsk@apple.com>
Thu, 15 Oct 2020 02:09:50 +0000 (19:09 -0700)
committerVedant Kumar <vsk@apple.com>
Mon, 26 Oct 2020 22:48:19 +0000 (15:48 -0700)
commit905f874c449cc114d74eaeb19639664779fd0b6e
tree71696c509317f3fa4b93ae66f47cdbbe32e77d97
parentb2b7cf39d596b1528cd64015575b3f5d1461c011
[cmake] Add LLVM_UBSAN_FLAGS, to allow overriding UBSan flags

Allow overriding the default set of flags used to enable UBSan when
building llvm.

This can be used to test new checks or opt out of certain checks.

Differential Revision: https://reviews.llvm.org/D89439
llvm/CMakeLists.txt
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/docs/CMake.rst