Fails with the following message in the error case:
CMake Error at /path/to/llvm-project/compiler-rt/lib/tsan/CMakeLists.txt:119 (message): Building the TSan runtime requires at least macOS SDK 10.12
Fixes #44682.
https://bugs.llvm.org/show_bug.cgi?id=44682
You need to guard this check on osx being present in ${TSAN_SUPPORTED_OS}. It's possible to have compiler-rt not target osx so we shouldn't fatal error when we aren't actually building for macOS.