[vcpkg/toolchain] set CMAKE_SYSTEM_PROCESSOR for arm on windows#16111
[vcpkg/toolchain] set CMAKE_SYSTEM_PROCESSOR for arm on windows#16111Neumann-A wants to merge 13 commits intomicrosoft:masterfrom
Conversation
|
as a side note, opencv is already compatible with arm64/arm cross compiling without this PR in any case (#9390 is about opencv) |
|
@cenit Did you patch it to mark it work or does it work by default? I interpreted #9390 as an request to correct the toolchain and obviously the toolchain is currently wrong for arm builds. @PhoebeHui : I am not going to correct the baseline arm errors here. I just want to make it obvious that the arm setup is currently incorrect from a CMake based point of view. |
|
@Neumann-A, I will take a look at the baseline issues. |
|
There are some specific lines in the portfile to deal with the issue: https://github.com/microsoft/vcpkg/blob/master/ports/opencv4/portfile.cmake#L27-L35 They are recent, since 4.5.0 PR. I forgot to link that issue to close it, but your solution is more general and more correct. @PhoebeHui it's very probable that those libraries that now are failing before were built as PE binary files for x86 archs due to these missing flags.... |
ras0219-msft
left a comment
There was a problem hiding this comment.
This is an important fix, thank you!
|
@Neumann-A gentle ping: was there any progress? |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
CI failures:
|
|
Qt6 and the cmake test port require these changes to correctly compile for ARM |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Ping for response. |
scripts/toolchains/windows.cmake
Outdated
There was a problem hiding this comment.
ARM64 on win11 can run also AMD64 code
There was a problem hiding this comment.
(and yes, ARM64 can run ARM code)
There was a problem hiding this comment.
what does OS_VERSION return for windows 11 ?
|
Note that the
And it still is, 10 months later. Some packages rely on CMAKE_SYSTEM_PROCESSOR being defined.( |
|
Any progress here? |
|
superseded by #24100 |
Correct the windows toolchain to correctly set CMAKE_SYSTEM_PROCESSOR so that CMake goes into CROSSCOMPILING mode.
closes #9390