You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a search list to find a compatible toolchain (#521)
* 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 <[email protected]>
* 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 <[email protected]>
0 commit comments