[CMake] [Darwin] [builtins] Change condition for skipping cc_kext to be setting based.

This is needed because we need to skip cc_kext generation for more than just the simulator builds.

llvm-svn: 248939
diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
index 12c1747..e2fe795 100644
--- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -270,7 +270,7 @@
     endforeach()
 
     # Don't build cc_kext libraries for simulator platforms
-    if(NOT ${os} MATCHES ".*sim$")
+    if(NOT DARWIN_${os}_SKIP_CC_KEXT)
       foreach (arch ${DARWIN_BUILTIN_ARCHS})
         # By not specifying MIN_VERSION this only reads the OS and OS-arch lists.
         # We don't want to filter out the builtins that are present in libSystem