summaryrefslogtreecommitdiffstats
path: root/lib/libcxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove libc++ and libc++abi 8.0.0 now that we switched to version 10.0.1patrick2021-01-11454-208261/+0
| | | | in the gnu/ directory.
* Move Makefiles for libc++ and libc++abi to gnu/lib in preparation for anpatrick2021-01-022-296/+0
| | | | | | | | upcoming update to those, which will see both codebases heading into the gnu/llvm dumpster. Feedback from jsg@ ok deraadt@ kettenis@
* Switch libc++ and libc++abi to use libunwind 11.0.0. Bump major for bothpatrick2021-01-022-3/+3
| | | | | | | libraries due to dynamic export additions and removals in libc++abi. Tested by kettenis@, visa@ and myself ok kettenis@
* Bump libc++ and libc++abi majors due to floating point typepatrick2020-08-031-1/+1
| | | | | | | changes with LLVM 10. found by kettenis@ ok deraadt@
* crank major versions of libLLVM libc++ libc++abigkoehler2020-03-041-1/+1
| | | | | OpenBSD macppc builds these libs with clang. Their ABI is changing because of clang -msvr4-struct-return
* define _LIBCPP_HAS_TIMESPEC_GET and _LIBCPP_HAS_C11_FEATURESjsg2019-12-081-0/+3
| | | | | OpenBSD has timespec_get(3) and struct timespec/aligned_alloc(3). ok kettenis@ jca@
* local __libcpp_asprintf_l() -> libc asprintf() was inspecting the pointerderaadt2019-06-281-3/+3
| | | | | (with inderminate value) for failure, rather than the return value of -1 ok mortimer
* Merge libc++, libc++abi and libunwind version 8.0.0.patrick2019-06-178-556/+228
| | | | | | Ports build by naddy@ Tested by visa on octeon Tested by kettenis on macppc and sparc64
* Import libc++ 8.0.0.patrick2019-06-17194-2657/+10590
|
* Add support for std::filesystem. We're already installing thepatrick2019-05-072-4/+6
| | | | | | | 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@
* that "device" is an abstraction to the underlying OS PRNG.espie2019-03-221-0/+5
| | | | | | | In OpenBSD's case, we know it has optimal entropy properties, so just say so. okay mikeb@, "why not" deraadt@
* build with NDEBUG defined to disable debug/tracking coderobert2019-03-141-2/+3
| | | | ok patrick@
* Remove .gitignore from libc++ and libc++abi that I usually remove beforepatrick2019-02-041-61/+0
| | | | importing, like we do for the other parts of the LLVM import.
* Tedu files that got (re)moved in LLVM 7.0.1.patrick2019-02-042-4261/+0
|
* Merge libc++, libc++abi and libunwind version 7.0.1.patrick2019-02-0417-4164/+640
| | | | | | Tested by visa on octeon Tested by kettenis on arm64, armv7 and sparc64 "go for it" deraadt and sthen
* Import libc++ 7.0.1.patrick2019-02-04242-8554/+37246
|
* More "explicitely" -> "explicitly" in various comments.krw2018-10-221-1/+1
| | | | ok guenther@ tb@ deraadt@
* Link libc++.so against libc++abi.so such that linking C binaries againstkettenis2018-10-131-1/+3
| | | | | | a C++ shared library will work correctly with modern linkers. ok guenther@
* add -Wall to CFLAGSrobert2018-09-111-2/+2
|
* instead of defining _LIBCPP_DEBUG in debug.cpp which enables some debugrobert2018-09-112-3/+2
| | | | | | code which breaks quiet a few things, define _LIBCPP_BUILDING_LIBRARY for the complete build to get the needed definitions in debug.cpp without enabling debug code
* merge libc++ 6.0.0 (bump lib major); ok patrick@, kettenis@robert2018-09-1130-2131/+900
|
* import of libc++ 6.0.0robert2018-09-11305-9876/+49907
|
* Add hw.ncpuonline to count the number of online CPUs.cheloha2018-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The introduction of hw.smt means that logical CPUs can be disabled after boot and prior to suspend/resume. If hw.smt=0 (the default), there needs to be a way to count the number of hardware threads available on the system at any given time. So, import HW_NCPUONLINE/hw.ncpuonline from NetBSD and document it. hw.ncpu becomes equal to the number of CPUs given to sched_init_cpu() during boot, while hw.ncpuonline is equal to the number of CPUs available to the scheduler in the cpuset "sched_all_cpus". Set_SC_NPROCESSORS_ONLN equal to this new sysctl and keep _SC_NPROCESSORS_CONF equal to hw.ncpu. This is preferable to adding a new sysctl to count the number of configured CPUs and keeping hw.ncpu equal to the number of online CPUs because such a change would break software in the ecosystem that relies on HW_NCPU/hw.ncpu to measure CPU usage and the like. Such software in base includes top(1), systat(1), and snmpd(8), and perhaps others. We don't need additional locking to count the cardinality of a cpuset in this case because the only interfaces that can modify said cardinality are sysctl(2) and ioctl(2), both of which are under the KERNEL_LOCK. Software using HW_NCPU/hw.ncpu to determine optimal parallism will need to be updated to use HW_NCPUONLINE/hw.ncpuonline. Until then, such software may perform suboptimally. However, most changes will be similar to the change included here for libcxx's std::thread:hardware_concurrency(): using HW_NCPUONLINE in lieu of HW_NCPU should be sufficient for determining optimal parallelism for most software if the change to _SC_NPROCESSORS_ONLN is insufficient. Prompted by deraadt. Discussed at length with kettenis, deraadt, and sthen. Lots of patch tweaks from kettenis. ok kettenis, "proceed" deraadt
* New POSIX xlocale implementation written from scratch.schwarze2017-09-052-1/+3
| | | | | | | | | | | | Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8. With important help from kettenis@, guenther@, and jca@. Repeated testing in ports bulk builds by naddy@. Additional testing by jca@, sebastia@, dcoppa@, and others. OK kettenis@ dcoppa@, and guenther@ on an earlier version. Riding guenther@'s libc/librthread major bump.
* wipe some more macros that do not belong in C++ forwarding headers.espie2017-04-181-0/+2
| | | | | (breaks lincity-ng) okay kettenis@
* Change build infrastructure to allow building both gcc and clang. Thiskettenis2017-04-171-2/+7
| | | | | | | doesn't actually flip the switch yet, so aarch64 continues to be the only architecture for which we build clang. ok jsg@, deraadt@
* clang is installed as cc and c++ there is no need to set CC and CXX tojsg2017-02-161-4/+1
| | | | clang and clang++.
* Depend compilation on the compiler version, so that we can alwayspatrick2017-01-201-1/+10
| | | | | | enter the directory to create an objdir. ok deraadt@
* Compile libc++ and libc++abi with clang by default instead of egcc.patrick2016-12-191-2/+3
| | | | | | | This allows our build system to selfhost itself after the initial clang bootstrap without relying on an external compiler. with input from and ok kettenis@
* We definitely want to use arc4random() on OpenBSD.kettenis2016-09-191-1/+1
| | | | ok patrick@
* Add -nostdinc++ like the original CMakeLists.txt does. Fixes bulding withkettenis2016-09-191-2/+2
| | | | | | clang++. ok pascal@, patrick@
* Implement OpenBSD support in libc++ and libunwind.patrick2016-09-054-5/+18
| | | | ok kettenis@
* Add makefiles to compile libc++, libc++abi and libunwind.patrick2016-09-042-0/+252
| | | | | Tweaks from pascal@ ok guenther@ kettenis@
* Import libc++ 3.9.0patrick2016-09-03248-0/+141013