DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

Rust target is determined by the build platform instead of the host platform #206

Open figsoda opened 1 year ago

figsoda commented 1 year ago

riff uses target_lexicon::HOST, which is determined when riff is built, and can differ from the actual target the user runs riff with

We default to x86_64-unknown-linux-musl on linux, which differs from x86_64-unknown-linux-gnu that my cargo targets, and causes the issue mentioned in https://github.com/DeterminateSystems/riff/pull/199#issuecomment-1379439484

riff should try to guess what rust on the host environment targets or have a better default (gnu instead of musl) instead of using the target of the build environment