mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Notable *port* changes (vs devel/llvm11): - Switch to single llvm-project distfile. This simplifies the port and support for the old style build process is rotting upstream after the mono-repo conversion. - Disable libedit dependency in libLLVM (still used by LLDB). This is one small step toward a dependency-less clang. - LLDB docs are disabled due to issues finding python includes when autogenerating API docs. Sponsored by: DARPA
20 lines
731 B
Text
20 lines
731 B
Text
[Driver] Default to libc++ on FreeBSD
|
|
|
|
Downstream may naively translate between DSL and LLVM target
|
|
triple. If OS version is lost in the process then Clang would
|
|
default to a version that's no longer supported by OS vendor.
|
|
|
|
https://reviews.llvm.org/D77776
|
|
|
|
--- clang/lib/Driver/ToolChains/FreeBSD.cpp.orig 2019-12-11 19:15:30 UTC
|
|
+++ clang/lib/Driver/ToolChains/FreeBSD.cpp
|
|
@@ -351,7 +351,8 @@ FreeBSD::FreeBSD(const Driver &D, const llvm::Triple &
|
|
}
|
|
|
|
ToolChain::CXXStdlibType FreeBSD::GetDefaultCXXStdlibType() const {
|
|
- if (getTriple().getOSMajorVersion() >= 10)
|
|
+ unsigned Major = getTriple().getOSMajorVersion();
|
|
+ if (Major >= 10 || Major == 0)
|
|
return ToolChain::CST_Libcxx;
|
|
return ToolChain::CST_Libstdcxx;
|
|
}
|