GCC 10.1 support by dutow · Pull Request #158 · lewissbaker/cppcoro
and others added 5 commits
July 18, 2020 20:18Starting with GCC 10.1, GCC/libstdc++ supports coroutines, but includes them in their final location in <coroutine>. This commit generalizes the location of the header, and the name of the types (either in the std or std::experimental namespace), so that both the current Clang/MSVC and the GCC approach can be supported. This should also guarantee that both current and later Clang/MSVC releases will be supported by the library.
While clang uses the -fcoroutines-ts flag to add support for the Coroutines TS, GCC uses the -fcoroutines flag. This commit refactors the cmake finder to support both.
* Included missing headers * Disabled a testcase for GCC that uses a syntax not supported by GCC10.1 * Reordered a class so GCC is able to find a data member
dutow
marked this pull request as draft
GIGte
mentioned this pull request
This was referenced
Oct 10, 2020This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters