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

cmake: Fix cross-compiling detection on OpenBSD #300

Closed
wants to merge 1 commit into from

Commits on Aug 4, 2024

  1. fixup! build: Generate toolchain.cmake in depends

    To detect cross-compiling, the host and build platforms are compared.
    The `build` variable is always an output of `config.sub`, but the `host`
    is not. This can lead to false results. For example, on OpenBSD:
     - host=amd64-unknown-openbsd7.5
     - build=x86_64-unknown-openbsd7.5
    
    This change replaces the `host` variable with `canonical_host`, which is
    also always an output of `config.sub`. Thus, `canonical_host` and
    `build` are always properly comparable.
    hebasto committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    263135c View commit details
    Browse the repository at this point in the history