Building the builtins on Darwin platforms is a bit complicated. This is a first-pass implementation of the functionality from clang_darwin.mk into CMake.
When building the builtins on Darwin we have layers of blacklists that we apply based on platform, architecture, and minimum supported OS version.
Please fix directory name to Darwin-excludes here and below. Or, better, hoist the directory name to a variable.
and use it from then on.