diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2023-03-28 13:11:45 -0400 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2023-04-03 21:23:55 -0700 |
commit | 34e907fdba13db61748c347cbdd33a22132d8b7a (patch) | |
tree | 9e03435eaf4f16ccd6ffc33fc63032e400891bf2 | |
parent | e16f668f5ed0699498a987be21d32f04e8bdcfbb (diff) |
[libc++] Fix CI on release/16.x
This patch is aimed directly at release/16.x -- it ensures that we
can run the CI successfully on the release branch. It's a collection
of changes that were made on main and not backported to release/16.x
because the CI had been failing since we created the branch.
Differential Revision: https://reviews.llvm.org/D147065
11 files changed, 20 insertions, 9 deletions
diff --git a/libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp b/libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp index 80f3f254c68f..ebb53cc89d74 100644 --- a/libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp +++ b/libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp @@ -663,7 +663,7 @@ int main(int, char**) { return 0; } #endif // RUN: %{build} -DTEST_123 -#if defined(TEST_123) && __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if defined(TEST_123) && __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> using HandlerType = decltype(std::__libcpp_verbose_abort); #endif diff --git a/libcxx/test/libcxx/clang_tidy.sh.cpp b/libcxx/test/libcxx/clang_tidy.sh.cpp index 57cabf3699f2..0e4c8d6b8ab0 100644 --- a/libcxx/test/libcxx/clang_tidy.sh.cpp +++ b/libcxx/test/libcxx/clang_tidy.sh.cpp @@ -217,7 +217,7 @@ END-SCRIPT #if __cplusplus >= 201103L # include <experimental/algorithm> #endif -#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> #endif #if __cplusplus >= 201103L diff --git a/libcxx/test/libcxx/double_include.sh.cpp b/libcxx/test/libcxx/double_include.sh.cpp index ea9fc7bfa875..62d2eb70e6d1 100644 --- a/libcxx/test/libcxx/double_include.sh.cpp +++ b/libcxx/test/libcxx/double_include.sh.cpp @@ -218,7 +218,7 @@ END-SCRIPT #if __cplusplus >= 201103L # include <experimental/algorithm> #endif -#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> #endif #if __cplusplus >= 201103L diff --git a/libcxx/test/libcxx/min_max_macros.compile.pass.cpp b/libcxx/test/libcxx/min_max_macros.compile.pass.cpp index 0d9170bb0fa0..a60604ffe298 100644 --- a/libcxx/test/libcxx/min_max_macros.compile.pass.cpp +++ b/libcxx/test/libcxx/min_max_macros.compile.pass.cpp @@ -341,7 +341,7 @@ TEST_MACROS(); # include <experimental/algorithm> TEST_MACROS(); #endif -#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> TEST_MACROS(); #endif diff --git a/libcxx/test/libcxx/modules_include.sh.cpp b/libcxx/test/libcxx/modules_include.sh.cpp index a45d3d45117d..5f640e2767c2 100644 --- a/libcxx/test/libcxx/modules_include.sh.cpp +++ b/libcxx/test/libcxx/modules_include.sh.cpp @@ -544,7 +544,7 @@ END-SCRIPT #include <experimental/algorithm> #endif // RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_123 -#if defined(TEST_123) && __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if defined(TEST_123) && __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) #include <experimental/coroutine> #endif // RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_124 diff --git a/libcxx/test/libcxx/nasty_macros.compile.pass.cpp b/libcxx/test/libcxx/nasty_macros.compile.pass.cpp index 7896b5edc600..5518281239c5 100644 --- a/libcxx/test/libcxx/nasty_macros.compile.pass.cpp +++ b/libcxx/test/libcxx/nasty_macros.compile.pass.cpp @@ -342,7 +342,7 @@ END-SCRIPT #if __cplusplus >= 201103L # include <experimental/algorithm> #endif -#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> #endif #if __cplusplus >= 201103L diff --git a/libcxx/test/libcxx/no_assert_include.compile.pass.cpp b/libcxx/test/libcxx/no_assert_include.compile.pass.cpp index ce9459290145..009bc14943fa 100644 --- a/libcxx/test/libcxx/no_assert_include.compile.pass.cpp +++ b/libcxx/test/libcxx/no_assert_include.compile.pass.cpp @@ -215,7 +215,7 @@ END-SCRIPT #if __cplusplus >= 201103L # include <experimental/algorithm> #endif -#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) +#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include <experimental/coroutine> #endif #if __cplusplus >= 201103L diff --git a/libcxx/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp b/libcxx/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp index 08b8949eeb18..82e8cab503a2 100644 --- a/libcxx/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp +++ b/libcxx/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp @@ -7,8 +7,10 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17 +// UNSUPPORTED: !c++experimental #include <ranges> +#include <utility> #include <vector> using JoinView = decltype(std::views::join(std::declval<std::vector<std::vector<int>>&>())); diff --git a/libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp b/libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp index 5efd6c72a13d..09b77c0901a2 100644 --- a/libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp +++ b/libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17 +// UNSUPPORTED: !c++experimental // ADL call with nested iterators of views should not look up base's view's // namespace diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml index c6339e444918..ed6eeaf13657 100644 --- a/libcxx/utils/ci/buildkite-pipeline.yml +++ b/libcxx/utils/ci/buildkite-pipeline.yml @@ -36,7 +36,9 @@ steps: artifact_paths: - "**/clang-format.patch" env: - GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION}" + GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION} --binary clang-format-${LLVM_STABLE_VERSION}" + CC: "clang-${LLVM_HEAD_VERSION}" + CXX: "clang++-${LLVM_HEAD_VERSION}" agents: queue: "libcxx-builders" os: "linux" @@ -50,6 +52,9 @@ steps: - label: "Generated output" command: "libcxx/utils/ci/run-buildbot check-generated-output" + env: + CC: "clang-${LLVM_HEAD_VERSION}" + CXX: "clang++-${LLVM_HEAD_VERSION}" artifact_paths: - "**/generated_output.patch" - "**/generated_output.status" @@ -64,6 +69,9 @@ steps: - label: "Documentation" command: "libcxx/utils/ci/run-buildbot documentation" + env: + CC: "clang-${LLVM_HEAD_VERSION}" + CXX: "clang++-${LLVM_HEAD_VERSION}" artifact_paths: - "**/test-results.xml" agents: diff --git a/libcxx/utils/generate_header_tests.py b/libcxx/utils/generate_header_tests.py index 298196328bb4..2a34f41170c9 100755 --- a/libcxx/utils/generate_header_tests.py +++ b/libcxx/utils/generate_header_tests.py @@ -43,7 +43,7 @@ header_restrictions = { "wchar.h": "!defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)", "experimental/algorithm": "__cplusplus >= 201103L", - "experimental/coroutine": "__cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)", + "experimental/coroutine": "__cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)", "experimental/deque": "__cplusplus >= 201103L", "experimental/forward_list": "__cplusplus >= 201103L", "experimental/functional": "__cplusplus >= 201103L", |