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

[fontconfig] Avoid error on cross-compile building the fontconfig cache #15869

Closed

Conversation

past-due
Copy link
Contributor

Describe the pull request

Fix fontconfig cross-compile by not attempting to execute the non-native architecture fc-cache tool.

  • What does your PR fix?

Avoid fontconfig build failure on cross-compile.

  • Which triplets are supported/not supported? Have you updated the CI baseline?

Impacts cross-compilation triplets (ex. arm64-osx).

@@ -87,7 +87,7 @@ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share


## Build the fontconfig cache
if(NOT VCPKG_TARGET_IS_WINDOWS)
if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT CMAKE_CROSSCOMPILING)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless you are explicitly setting CMAKE_CROSSCOMPILING in the triplet this variable will not be set. #15424 has a different name for that variable or not? VCPKG_CROSSCOMPILING?

@JackBoosY
Copy link
Contributor

Pinging @past-due for response. Is work still being done for this PR?

@past-due
Copy link
Contributor Author

@JackBoosY I have not had a chance to re-check this PR, and (if memory serves) I believe a better solution might be possible now with host triplet dependencies. I'll close this.

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.

3 participants