Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151347356
D24420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24420.diff
View Options
Index: head/devel/llvm90/Makefile
===================================================================
--- head/devel/llvm90/Makefile
+++ head/devel/llvm90/Makefile
@@ -2,7 +2,7 @@
PORTNAME= llvm
DISTVERSION= 9.0.1
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION}/
PKGNAMESUFFIX= ${LLVM_SUFFIX}
Index: head/devel/llvm90/files/clang/patch-D77776
===================================================================
--- head/devel/llvm90/files/clang/patch-D77776
+++ head/devel/llvm90/files/clang/patch-D77776
@@ -0,0 +1,20 @@
+[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
+
+--- tools/clang/lib/Driver/ToolChains/FreeBSD.cpp.orig 2019-12-11 19:15:30 UTC
++++ tools/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;
+ }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 7:01 PM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31046633
Default Alt Text
D24420.diff (1 KB)
Attached To
Mode
D24420: devel/llvm90: backport --target fix for libc++
Attached
Detach File
Event Timeline
Log In to Comment