--- a/tools/clang/lib/Driver/ToolChains/Darwin.cpp.orig 2018-01-22 19:03:16.000000000 -0800 +++ b/tools/clang/lib/Driver/ToolChains/Darwin.cpp 2018-01-22 19:05:24.000000000 -0800 @@ -680,8 +680,8 @@ bool MachO::HasNativeLLVMSupport() const { return true; } ToolChain::CXXStdlibType Darwin::GetDefaultCXXStdlibType() const { - // Default to use libc++ on OS X 10.9+ and iOS 7+. - if ((isTargetMacOS() && !isMacosxVersionLT(10, 9)) || + // Default to use libc++ on OS X 10.4+ and iOS 7+. + if ((isTargetMacOS() && !isMacosxVersionLT(10, 4)) || (isTargetIOSBased() && !isIPhoneOSVersionLT(7, 0)) || isTargetWatchOSBased()) return ToolChain::CST_Libcxx;