D54339-hurd-libcxx-threads-detection
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 18 Sep 2020 09:47:25 +0000 (10:47 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Fri, 18 Sep 2020 09:47:25 +0000 (10:47 +0100)
r347347 | ldionne | 2018-11-20 22:14:05 +0100 (mar. 20 nov. 2018) | 6 lignes

r347347 | ldionne | 2018-11-20 22:14:05 +0100 (mar. 20 nov. 2018) | 6 lignes

[libcxx] Fix threads detection on GNU/Hurd

GNU/Hurd provides standard Posix threads

Reviewed as https://reviews.llvm.org/D54339.
Thanks to Samuel Thibault for the patch.

Gbp-Pq: Topic hurd
Gbp-Pq: Name D54339-hurd-libcxx-threads-detection.diff

libcxx/include/__config

index 738d891e3032e0724a3df0b57711df9c005902e6..6982213d523afc677b50d33211a5c45e4f5e539c 100644 (file)
@@ -1110,6 +1110,7 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
       defined(__Fuchsia__) || \
       defined(__NetBSD__) || \
       defined(__linux__) || \
+      defined(__GNU__) || \
       defined(__APPLE__) || \
       defined(__CloudABI__) || \
       defined(__sun__) || \