-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coroutine build failed with error C7651 #51
Comments
Thanks for let me know!
I will take a look and fix it this weekend.
…On Fri, Jul 17, 2020, 12:20 PM Lily ***@***.***> wrote:
I am a member of Microsoft VCPKG team. In an internal version of Visual
Studio, coroutine build failed with error C7651:
buildtrees\coroutine\src\1.5.0-36192178c9.clean\modules\portable\frame.cpp(136): error C7651: __builtin_coro_resume cannot be used with /await. Use '/std:c++latest' or later for standard coroutine support
buildtrees\coroutine\src\1.5.0-36192178c9.clean\modules\portable\frame.cpp(144): error C7651: __builtin_coro_destroy cannot be used with /await. Use '/std:c++latest' or later for standard coroutine support
This issue due to an internal change in compiler. For fixing this issue,
we need to introduce a set of wrapper functions in frame.cpp so that the
calls to __builtin_coro_* only appear in templates with a value-dependent
condition. Then in the portable_coro_(done|resume|destroy) functions
replace the call to __builtin_coro_* with a call to the appropriate
wrapper with a template argument <true>.
I have added a patch to solve this problem temporarily on VCPKG, the
related PR microsoft/vcpkg#12456
<microsoft/vcpkg#12456>. I submit this issue and
want to fix this error on upstream.
Thanks a lot.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#51>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLSYEYZSIOXQHM4UJ7ZOZTR367RNANCNFSM4O5NG4QQ>
.
|
luncliff
added a commit
that referenced
this issue
Aug 12, 2020
Appreciate for the reporting and works! I feel shame that I can't spend my time on the issue see #51
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am a member of Microsoft VCPKG team. In an internal version of Visual Studio, coroutine build failed with error C7651:
This issue due to an internal change in compiler. For fixing this issue, we need to introduce a set of wrapper functions in
frame.cpp
so that the calls to__builtin_coro_*
only appear in templates with a value-dependent condition. Then in theportable_coro_(done|resume|destroy)
functions replace the call to__builtin_coro_*
with a call to the appropriate wrapper with a templateargument <true>
.I have added a patch to solve this problem temporarily on VCPKG, the related PR microsoft/vcpkg#12456. I submit this issue and want to fix this error on upstream.
Thanks a lot.
The text was updated successfully, but these errors were encountered: