4 ms·
So a target triple is really a target quad (makes perfect sense). Tbh, leaving it out would or using the word "generic" would be far better than unknown.
by andrewchambers 10y ago
So a target triple is really a target quad (makes perfect sense). Tbh, leaving it out would or using the word "generic" would be far better than unknown.
- steveklabnik 10y agoLeaving it out means that it's harder to parse, which isn't the worst thing in the world, but the explicitness is helpful, IMO. "generic" would work too, but this is a long-standing convention, so that ship has probably sailed.
- glandium 10y agoHarder to parse is one thing, but if it could match the output of config.guess, and/or allow to skip the "unknown" part so that the triples match what's used for GCC prefixes and clang's --target, that would be way nicer. https://github.com/rust-lang/rust/issues/33147 https://github.com/rust-lang/rust/issues/33147
- Manishearth 10y agoYou already leave out the ABI for some kernels (e.g. x86_64-apple-darwin), so it would be ambiguous otherwise.