Skip to content

Fix cross-compilation from Windows - #436

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
reynoldsbd:cpack-arch
Nov 2, 2021
Merged

Fix cross-compilation from Windows#436
bradh352 merged 1 commit into
c-ares:mainfrom
reynoldsbd:cpack-arch

Conversation

@reynoldsbd

Copy link
Copy Markdown
Contributor

When determining value for CPACK_PACKAGE_ARCHITECTURE, prefer to use
value from CMAKE_SYSTEM_PROCESSOR before falling back to uname output.

Additionally, if building from a Windows host, emit a fatal error
instead of attempting to call uname.

When determining value for CPACK_PACKAGE_ARCHITECTURE, prefer to use
value from CMAKE_SYSTEM_PROCESSOR before falling back to uname output.

Additionally, if building from a Windows host, emit a fatal error
instead of attempting to call uname.
@bradh352

bradh352 commented Nov 2, 2021

Copy link
Copy Markdown
Member

This is cross compiling from Windows to Linux ?

@reynoldsbd

Copy link
Copy Markdown
Contributor Author

Yes that's correct. To be precise, my team is using vcpkg with a custom triplet and toolchain, building from Windows, targeting Linux.

@bradh352
bradh352 merged commit 65d0d76 into c-ares:main Nov 2, 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.

2 participants