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

[vcpkg scripts] use CMAKE_C_COMPILER_TARGET to detect cross-compilation #41651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 19, 2024

  1. configure_make: use CMAKE_C_COMPILER_TARGET to detect cross-compilation

    Currently, the only way to cross-compile using vcpkg_configure_make is
    to use a gcc cross toolchain with the target as the prefix.
    
    This is not how you cross compile with clang--with clang you set
    CMAKE_<LANG>_COMPILER_TARGET. This detects this from the toolchain file
    and passes it along
    russelltg committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    316ac13 View commit details
    Browse the repository at this point in the history