Skip to content

Commit

Permalink
disable pmr for clang-16 on ubuntu.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 24, 2023
1 parent 0299c41 commit 2ccf615
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
compiler: clang++-16
cxxstd: "20,2b"
stdlib: libc++
# this clang seems to have a bug, see standard 9.5.4.11
cobalt_pmr: no
os: ubuntu-latest
container: ubuntu:23.04
install: "clang-16 libc++-16-dev"
Expand Down Expand Up @@ -108,7 +110,8 @@ jobs:
run: |
cd ../boost-root
export STDLIB=${{matrix.stdlib}}
./b2 -j3 libs/$LIBRARY/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} ${STDLIB:+stdlib=$STDLIB} variant=debug,release
export COBALT_PMR=${{matrix.cobalt_pmr}}
./b2 -j3 libs/$LIBRARY/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} ${STDLIB:+stdlib=$STDLIB} ${COBALT_PMR:+boost.cobalt.pmr=$COBALT_PMR} variant=debug,release
windows:
strategy:
Expand Down
5 changes: 3 additions & 2 deletions test/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ boost::cobalt::thread thr_stop()

#if !defined(BOOST_COBALT_USE_IO_CONTEXT)
auto exec = co_await boost::asio::this_coro::executor;
auto &exc = *exec.target<boost::asio::io_context::executor_type>();
BOOST_ASSERT(&exc != nullptr);
auto execp = exec.target<boost::asio::io_context::executor_type>();
BOOST_ASSERT(execp != nullptr);
auto exc = *execp;
#else
auto exc = co_await boost::asio::this_coro::executor;
#endif
Expand Down

0 comments on commit 2ccf615

Please sign in to comment.