From facdcc56815e93a378a82b57a554f75a9a54c8d4 Mon Sep 17 00:00:00 2001 Date: Mon, 17 May 2021 21:19:46 -0700 Subject: [PATCH 18/24] 10.6 and less: clang default to libc++ on all darwin systems --- clang/lib/Driver/ToolChains/Darwin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index cef270cfc34a..3751a6a3986f 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -823,8 +823,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 ((isTargetMacOSBased() && !isMacosxVersionLT(10, 9)) || + // Default to use libc++ on OS X 10.4+ and iOS 7+. + if ((isTargetMacOSBased() && !isMacosxVersionLT(10, 4)) || (isTargetIOSBased() && !isIPhoneOSVersionLT(7, 0)) || isTargetWatchOSBased()) return ToolChain::CST_Libcxx; 2.21.1 (Apple Git-122.3)