The cmake build uses COMPILER_RT_TARGET_HAS_* in the CMakeLists.txt but then translates it to -DCOMPILER_RT_HAS_* flags which the c++ code checks for. So we need to define the latter, not the former.
The cmake build uses COMPILER_RT_TARGET_HAS_* in the CMakeLists.txt but then translates it to -DCOMPILER_RT_HAS_* flags which the c++ code checks for. So we need to define the latter, not the former.