[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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@248939 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
index 12c1747..e2fe795 100644
--- a/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/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