[CMake] [MinGW] Enable use of LLVM_USE_SANITIZER in a MinGW environment
authorMarkus Böck <markus.boeck02@gmail.com>
Mon, 8 Feb 2021 21:04:04 +0000 (23:04 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 8 Feb 2021 21:04:50 +0000 (23:04 +0200)
commit99dfcfd14c1fef46891ba7aa7e0bf5ffad1f0de9
tree6fbc0cab2e184cc2dc9b74f4ca209233d5c201f3
parentec41ed5b1b9458d5e06b77ee808823b274cc2ac4
[CMake] [MinGW] Enable use of LLVM_USE_SANITIZER in a MinGW environment

Currently using LLVM_USE_SANITIZER with a MinGW target leads to a fatal
configuration error due to an unsupported platform. MinGW targets on
clang however implement a few sanitizers, currently ASAN and UBSAN.

This patch enables LLVM_USE_SANITIZER in a MinGW environment as well.

Differential Revision: https://reviews.llvm.org/D95750
llvm/cmake/modules/HandleLLVMOptions.cmake