Skip to content

Fix support for x86 builds with Clang - #889

Merged
Kenny Kerr (kennykerr) merged 3 commits into
microsoft:masterfrom
arthurbiancarelli:ab/clang_x86
Mar 12, 2021
Merged

Fix support for x86 builds with Clang #889
Kenny Kerr (kennykerr) merged 3 commits into
microsoft:masterfrom
arthurbiancarelli:ab/clang_x86

Conversation

@arthurbiancarelli

Copy link
Copy Markdown
Contributor

Fixes #879

@ghost

Deleted user (ghost) commented Mar 12, 2021

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@kennykerr

Copy link
Copy Markdown
Collaborator

FYI Raymond Chen (@oldnewthing) this is fixing a regression introduced in #662.

Comment thread strings/base_coroutine_threadpool.h Outdated
Comment thread strings/base_coroutine_threadpool.h Outdated
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca>
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca>

@kennykerr Kenny Kerr (kennykerr) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Don't forget to complete the CLA.

@arthurbiancarelli

Copy link
Copy Markdown
Contributor Author

Done

happy to contribute !

@kennykerr
Kenny Kerr (kennykerr) merged commit c70d938 into microsoft:master Mar 12, 2021
@oldnewthing

Copy link
Copy Markdown
Member

Ah, I see. clang lambdas are implicitly convertible to __cdecl flat callbacks, but not __stdcall.

@kennykerr

Copy link
Copy Markdown
Collaborator

Yes, Visual C++ provides overloads for all calling conventions (a very cool feature) but this is apparently not required by the standard and Clang declines to do the same.

This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error on x86 builds with Clang

3 participants