summaryrefslogtreecommitdiffstats
path: root/lib/libcxx
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-05-07 05:20:04 +0000
committerpatrick <patrick@openbsd.org>2019-05-07 05:20:04 +0000
commitfc4160f8ff0e43b24be64deda803ad6be91ec090 (patch)
tree67e9eed3ced2766fd1fc0503b11ee1490898f19c /lib/libcxx
parentalways rearm completion queues as leaving them disarmed would lead to rx (diff)
downloadwireguard-openbsd-fc4160f8ff0e43b24be64deda803ad6be91ec090.tar.xz
wireguard-openbsd-fc4160f8ff0e43b24be64deda803ad6be91ec090.zip
Add support for std::filesystem. We're already installing the
headers, so also compile the needed source files for it. While there, switch to compiling libc++ with C++14. Prompted by, initial patch from and ok espie@, ok jca@
Diffstat (limited to 'lib/libcxx')
-rw-r--r--lib/libcxx/Makefile8
-rw-r--r--lib/libcxx/shlib_version2
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libcxx/Makefile b/lib/libcxx/Makefile
index d17988b5083..b7c67c88b31 100644
--- a/lib/libcxx/Makefile
+++ b/lib/libcxx/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.12 2019/03/14 08:45:36 robert Exp $
+# $OpenBSD: Makefile,v 1.13 2019/05/07 05:20:04 patrick Exp $
.include <bsd.own.mk>
@@ -15,7 +15,7 @@ AHDRDIR= ${.CURDIR}/../libcxxabi/include
UHDRDIR= ${.CURDIR}/../libunwind/include
CXXINCLUDEDIR= /usr/include/c++/v1
-.PATH: ${SRCDIR}
+.PATH: ${SRCDIR} ${SRCDIR}/filesystem
LIB= c++
@@ -27,6 +27,7 @@ SRCS+= algorithm.cpp \
chrono.cpp \
condition_variable.cpp \
debug.cpp \
+ directory_iterator.cpp \
exception.cpp \
functional.cpp \
future.cpp \
@@ -37,6 +38,7 @@ SRCS+= algorithm.cpp \
memory.cpp \
mutex.cpp \
new.cpp \
+ operations.cpp \
optional.cpp \
random.cpp \
regex.cpp \
@@ -57,7 +59,7 @@ CPPFLAGS+= -Wall -DLIBCXXABI -I${HDRDIR} -D_LIBCPP_BUILDING_LIBRARY \
-DNDEBUG
CXXFLAGS+= -nostdlib -nostdinc++
.if empty(CXXFLAGS:M-std=*)
-CXXFLAGS+= -std=c++11
+CXXFLAGS+= -std=c++14
.endif
LDADD+= -L${BSDOBJDIR}/lib/libcxxabi -lc++abi
diff --git a/lib/libcxx/shlib_version b/lib/libcxx/shlib_version
index c6e3f4d3fc0..ba5a3fee584 100644
--- a/lib/libcxx/shlib_version
+++ b/lib/libcxx/shlib_version
@@ -1,2 +1,2 @@
major=2
-minor=1
+minor=2