-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[vcpkg] Set CMAKE_SYSTEM_PROCESSOR if target architecture is arm-linux or arm64-linux. #13465
Conversation
This belongs in the CMake toolchain not the triplet.... |
Agreed with @Neumann-A. |
To me, |
bad design to double down on the same thing especially since Furthermore if you compile your outside project for that system you probably have a toolchain setting all the values and compiler flags correctly. As such you can just use that toolchain within vcpkg and be done with it instead of repeating yourself in the triplet. |
Updated. Change is moved to |
/azp run |
This PR LGTM once we get the CI to pass :) Thanks! |
Azure Pipelines successfully started running 1 pipeline(s). |
Something similar needs to be applied to windows based arm triplets |
/azp run |
No pipelines are associated with this pull request. |
This broke openxr-loader:
|
@BillyONeal, seems this build failed on vcpkg/master already.
|
@BillyONeal , figured out the issue. That lib depends on another library (libxcb-glx0-dev), after run |
@xieyubo We already installed that before the pipeline check.
|
@JackBoosY , still didn't repro on a clean environment: xyb@xybpc:~/src/vcpkg$ ./vcpkg install openxr-loader Total elapsed time: 25.48 s The package openxr-loader:x64-linux provides CMake targets:
|
OK, repro it. The repro step:
|
I think it is a separate issue not related to my PR. Even in vcpkg master build, if you install |
…E is arm or arm64. This change tries to fix issue microsoft#13395. Root cause: In script mode, cmake won't populate CMAKE_SYSTEM_PROCESSOR parameter automatically. That parameter is required by libpng to configure build parameters. To fix this issue, we need explicitly set CMAKE_SYSTEM_PROCESSOR value. Verify: On arm64-linux host, run `./vcpkg install tesseract:arm64-linux`.
I noticed @PhoebeHui just fixed the openxr-loader build dependency issue: 790910f. I've rebased with his change. I believe my PR should be pass now. @BillyONeal |
Describe the pull request
What does your PR fix? Fixes #
[tesseract:arm64-linux] build failure #13395: [tesseract:arm64-linux] build failure
Which triplets are supported/not supported? Have you updated the CI baseline?
Does your PR follow the maintainer guide?
yes