I’m curious what the community opinion is about the target triples. For instance, the rust-lang.org binaries use a triple like x86_64-unknown-linux-gnu
, where the vendor is “unknown”. We could fill that with “redhat” for Fedora, but I’m not sure whether we should.
There’s precedence both ways in the C compilers. Fedora’s GCC targets x86_64-redhat-linux
, and its clang targets x86_64-unknown-linux-gnu
just like Rust.
I worry that filling in the vendor might unnecessarily fork configurations in things like Cargo’s platform specific dependencies. Surely we don’t want upstream authors to have to list every vendor variation under the sun, and it seems like a silly thing to have to patch for distro packaging a crate. Plus we want the distro compiler to be usable for developers to compile external unpatched crates too.
Perhaps there’s an LLVM reason for leaving it unknown too? That could be why Fedora’s clang is not vendored, but I’m not familiar with LLVM internals.
So I’m leaning toward leaving Rust “unknown”. What do you think?