boostorg / boostorg/context

Cygwin problem caused by config.hpp defining BOOST_USE_UCONTEXT

Open
#172 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Assembly
Stars
370
Forks
186
Avg merge
24d 6h
Merged PRs (30d)
1

Description

https://github.com/boostorg/context/blob/fb0f3eab4d14ce2de4cf3a5446c8a0f735a9282d/include/boost/context/detail/config.hpp#L33-L35

defines `BOOST_USE_UCONTEXT` on Cygwin. This causes Fiber to fail to build, because it tries to use ucontext, but Context is built with fcontext.

If Context is built with ucontext instead, Fiber builds, but then Coroutine fails, because it needs fcontext:

https://github.com/boostorg/coroutine/blob/4e47f98d44ad0d5d487788ed6eb4d347489e5483/src/detail/coroutine_context.cpp#L68

Should `config.hpp` be defining `BOOST_USE_UCONTEXT` on Cygwin?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.