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

Use a search list to find a compatible toolchain #521

Merged
merged 2 commits into from
Jun 29, 2020

Commits on Jun 27, 2020

  1. cross-compile: add find_working_gnu_prefix to detect compiler

    Add `find_working_gnu_prefix()` to iterate through a slice of potential
    compiler prefixes, and return the first one that succeeds.
    
    This is useful when there is not yet a single clear toolchain prefix,
    for example with riscv (riscv64-unknown-none-elf vs
    riscv32-unknown-none-elf vs riscv-none-embed).
    
    Signed-off-by: Sean Cross <sean@xobs.io>
    xobs committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    0cf06f4 View commit details
    Browse the repository at this point in the history
  2. cross-compile: riscv: look through whitelist of compilers

    riscv currently has several competing compiler toolchain prefixes. If a
    toolchain supports multilib, then an "incorrect" target triple may be
    used.
    
    For example, many distributions ship multilib toolchains with a
    `riscv64` prefix, so a riscv32imac-unknown-none-elf target can
    successfully use a toolchain with a triple of `riscv64-unknown-none`.
    
    Signed-off-by: Sean Cross <sean@xobs.io>
    xobs committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    988b382 View commit details
    Browse the repository at this point in the history