[libcxx-commits] [libcxx] [libc++] Add CI job testing on OpenBSD (PR #106315)

Brad Smith via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 27 17:54:42 PDT 2024


https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/106315

>From ae1345a6d7ca4edc0b24e7d24f263b4f541b528b Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Tue, 27 Aug 2024 20:29:06 -0400
Subject: [PATCH] [libc++] Add CI job testing on OpenBSD

---
 libcxx/include/__algorithm/simd_utils.h   |  2 +-
 libcxx/include/__configuration/compiler.h |  4 ++--
 libcxx/utils/ci/buildkite-pipeline.yml    | 12 ++++++++++++
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/libcxx/include/__algorithm/simd_utils.h b/libcxx/include/__algorithm/simd_utils.h
index 549197be80183f..db82710e3e465f 100644
--- a/libcxx/include/__algorithm/simd_utils.h
+++ b/libcxx/include/__algorithm/simd_utils.h
@@ -28,7 +28,7 @@ _LIBCPP_PUSH_MACROS
 #include <__undef_macros>
 
 // TODO: Find out how altivec changes things and allow vectorizations there too.
-#if _LIBCPP_STD_VER >= 14 && defined(_LIBCPP_CLANG_VER) && !defined(__ALTIVEC__)
+#if _LIBCPP_STD_VER >= 14 && defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1700 && !defined(__ALTIVEC__)
 #  define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 1
 #else
 #  define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 0
diff --git a/libcxx/include/__configuration/compiler.h b/libcxx/include/__configuration/compiler.h
index 80ece22bb50bd6..ed52c875ed9a9e 100644
--- a/libcxx/include/__configuration/compiler.h
+++ b/libcxx/include/__configuration/compiler.h
@@ -33,8 +33,8 @@
 // Warn if a compiler version is used that is not supported anymore
 // LLVM RELEASE Update the minimum compiler versions
 #  if defined(_LIBCPP_CLANG_VER)
-#    if _LIBCPP_CLANG_VER < 1700
-#      warning "Libc++ only supports Clang 17 and later"
+#    if _LIBCPP_CLANG_VER < 1600
+#      warning "Libc++ only supports Clang 16 and later"
 #    endif
 #  elif defined(_LIBCPP_APPLE_CLANG_VER)
 #    if _LIBCPP_APPLE_CLANG_VER < 1500
diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml
index d02d11ae7a756b..111fce874e743f 100644
--- a/libcxx/utils/ci/buildkite-pipeline.yml
+++ b/libcxx/utils/ci/buildkite-pipeline.yml
@@ -173,6 +173,18 @@ steps:
       os: freebsd
     <<: *common
 
+- group: ':openbsd: OpenBSD'
+  steps:
+  - label: OpenBSD -current amd64
+    command: libcxx/utils/ci/run-buildbot generic-cxx17
+    env:
+      CC: clang
+      CXX: clang++
+    agents:
+      queue: libcxx-builders
+      os: openbsd
+    <<: *common
+
 - group: ':android: Android'
   steps:
   - label: Android 5.0, x86 NDK



More information about the libcxx-commits mailing list