Skip to content
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

Use x86 scanning for the base instead of x64 to get cdecl #1232

Merged
merged 3 commits into from Sep 8, 2022

Conversation

sotteson1
Copy link
Contributor

Use the x86 scanner as what gets kept from cross-arch collapsing of scans. Only scanning for x86 (-m32) gets us accurate calling convention data.

Also fixed some issues uncovered by moving the base scanner from x64 to x86.

Fixes #1217

@sotteson1 sotteson1 merged commit c0e4ded into main Sep 8, 2022
@sotteson1 sotteson1 deleted the user/sotteson/use-x86-for-common branch September 8, 2022 20:29
@kennykerr
Copy link
Contributor

Took the winmd from the build for a spin and it looks much better - thanks!

@elachlan
Copy link
Contributor

elachlan commented Sep 9, 2022

@sotteson1 CrossArchSyntaxMap.namesTo64BitStructs should be a ConcurrentDictionary. It broke building on my workstation with a concurrency error.

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.

There are many APIs that are exported as stdcall but are now declared to be cdecl
3 participants