Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cppwinrt: Support Linux cross-build with mingw-w64#1238

Merged
kennykerr merged 11 commits intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
alvinhochun:alvin/cross-buildalvinhochun/cppwinrt:alvin/cross-buildCopy head branch name to clipboard
Nov 28, 2022
Merged

cppwinrt: Support Linux cross-build with mingw-w64#1238
kennykerr merged 11 commits intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
alvinhochun:alvin/cross-buildalvinhochun/cppwinrt:alvin/cross-buildCopy head branch name to clipboard

Conversation

@alvinhochun
Copy link
Contributor

This enables cross-building the cppwinrt.exe tool from Linux. A CI has been added to test this.

_get_pgmptr is not available in msvcrt used by most mingw-w64
toolchains, so use GetModuleFileNameA instead. I also found that
_get_pgmptr does not give a path at all when run from a long path
(>260 bytes) so this change will be an improvement.
32KB on the stack isn't really that bad...
@alvinhochun
Copy link
Contributor Author

Getting random intermittent failures again... @kennykerr can you please trigger a re-run of the failed jobs?

@kennykerr kennykerr merged commit da5579c into microsoft:master Nov 28, 2022
@alvinhochun alvinhochun deleted the alvin/cross-build branch December 11, 2022 16:49
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.