Skip to content

Commit 34e907f

Browse files
ldionnetstellar
authored andcommitted
[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
1 parent e16f668 commit 34e907f

11 files changed

+20
-9
lines changed

libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ int main(int, char**) { return 0; }
663663
#endif
664664

665665
// RUN: %{build} -DTEST_123
666-
#if defined(TEST_123) && __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
666+
#if defined(TEST_123) && __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
667667
# include <experimental/coroutine>
668668
using HandlerType = decltype(std::__libcpp_verbose_abort);
669669
#endif

libcxx/test/libcxx/clang_tidy.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ END-SCRIPT
217217
#if __cplusplus >= 201103L
218218
# include <experimental/algorithm>
219219
#endif
220-
#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
220+
#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
221221
# include <experimental/coroutine>
222222
#endif
223223
#if __cplusplus >= 201103L

libcxx/test/libcxx/double_include.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ END-SCRIPT
218218
#if __cplusplus >= 201103L
219219
# include <experimental/algorithm>
220220
#endif
221-
#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
221+
#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
222222
# include <experimental/coroutine>
223223
#endif
224224
#if __cplusplus >= 201103L

libcxx/test/libcxx/min_max_macros.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ TEST_MACROS();
341341
# include <experimental/algorithm>
342342
TEST_MACROS();
343343
#endif
344-
#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
344+
#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
345345
# include <experimental/coroutine>
346346
TEST_MACROS();
347347
#endif

libcxx/test/libcxx/modules_include.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ END-SCRIPT
544544
#include <experimental/algorithm>
545545
#endif
546546
// RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_123
547-
#if defined(TEST_123) && __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
547+
#if defined(TEST_123) && __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
548548
#include <experimental/coroutine>
549549
#endif
550550
// RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_124

libcxx/test/libcxx/nasty_macros.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ END-SCRIPT
342342
#if __cplusplus >= 201103L
343343
# include <experimental/algorithm>
344344
#endif
345-
#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
345+
#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
346346
# include <experimental/coroutine>
347347
#endif
348348
#if __cplusplus >= 201103L

libcxx/test/libcxx/no_assert_include.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ END-SCRIPT
215215
#if __cplusplus >= 201103L
216216
# include <experimental/algorithm>
217217
#endif
218-
#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
218+
#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
219219
# include <experimental/coroutine>
220220
#endif
221221
#if __cplusplus >= 201103L

libcxx/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
10+
// UNSUPPORTED: !c++experimental
1011

1112
#include <ranges>
13+
#include <utility>
1214
#include <vector>
1315

1416
using JoinView = decltype(std::views::join(std::declval<std::vector<std::vector<int>>&>()));

libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
10+
// UNSUPPORTED: !c++experimental
1011

1112
// ADL call with nested iterators of views should not look up base's view's
1213
// namespace

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ steps:
3636
artifact_paths:
3737
- "**/clang-format.patch"
3838
env:
39-
GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION}"
39+
GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION} --binary clang-format-${LLVM_STABLE_VERSION}"
40+
CC: "clang-${LLVM_HEAD_VERSION}"
41+
CXX: "clang++-${LLVM_HEAD_VERSION}"
4042
agents:
4143
queue: "libcxx-builders"
4244
os: "linux"
@@ -50,6 +52,9 @@ steps:
5052

5153
- label: "Generated output"
5254
command: "libcxx/utils/ci/run-buildbot check-generated-output"
55+
env:
56+
CC: "clang-${LLVM_HEAD_VERSION}"
57+
CXX: "clang++-${LLVM_HEAD_VERSION}"
5358
artifact_paths:
5459
- "**/generated_output.patch"
5560
- "**/generated_output.status"
@@ -64,6 +69,9 @@ steps:
6469

6570
- label: "Documentation"
6671
command: "libcxx/utils/ci/run-buildbot documentation"
72+
env:
73+
CC: "clang-${LLVM_HEAD_VERSION}"
74+
CXX: "clang++-${LLVM_HEAD_VERSION}"
6775
artifact_paths:
6876
- "**/test-results.xml"
6977
agents:

0 commit comments

Comments
 (0)