mirror of
https://github.com/Naios/continuable.git
synced 2026-02-08 10:46:40 +08:00
Attemtp to fix coroutines on clang
This commit is contained in:
parent
45cd47806b
commit
810d778b2e
@ -90,7 +90,7 @@ install:
|
|||||||
(cd llvm/build/projects/libcxxabi && make install -j2)
|
(cd llvm/build/projects/libcxxabi && make install -j2)
|
||||||
export STD_CXX_FLAGS="-isystem ${TRAVIS_BUILD_DIR}/llvm/install/include/c++/v1 -stdlib=libc++"
|
export STD_CXX_FLAGS="-isystem ${TRAVIS_BUILD_DIR}/llvm/install/include/c++/v1 -stdlib=libc++"
|
||||||
export STD_LINKER_FLAGS="-L ${TRAVIS_BUILD_DIR}/llvm/install/lib -l c++ -l c++abi"
|
export STD_LINKER_FLAGS="-L ${TRAVIS_BUILD_DIR}/llvm/install/lib -l c++ -l c++abi"
|
||||||
export STD_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TRAVIS_BUILD_DIR}/llvm/install/lib"
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TRAVIS_BUILD_DIR}/llvm/install/lib"
|
||||||
fi
|
fi
|
||||||
# Function for creating a new 'build' directory
|
# Function for creating a new 'build' directory
|
||||||
- |
|
- |
|
||||||
|
|||||||
@ -83,7 +83,7 @@ public:
|
|||||||
void await_suspend(coroutine_handle<> h) {
|
void await_suspend(coroutine_handle<> h) {
|
||||||
// Forward every result to the current awaitable
|
// Forward every result to the current awaitable
|
||||||
std::move(continuable_)
|
std::move(continuable_)
|
||||||
.next([h, this](auto&&... args) {
|
.next([h, this](auto&&... args) mutable {
|
||||||
resolve(std::forward<decltype(args)>(args)...);
|
resolve(std::forward<decltype(args)>(args)...);
|
||||||
h.resume();
|
h.resume();
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user