Description
Currently, rustc accepts a limited set of --target values. Those match some of the values one can get out of the typical config.guess
, but for most platforms, the machine/manufacturer part of the target triplet should be ignored, or allowed to be omitted. (the output of config-guess is of the form CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
or CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
)
For example, the linux x86_64 target for rustc is --target=x86_64-unknown-linux-gnu
.
Some time ago, config.guess
would have returned that. Nowadays, it returns x86_64-pc-linux-gnu
.
clang accepts both, as well as the shorter form: --target=x86_64-linux-gnu
(in fact, it's very lax, --target=x86_64-foo
works too).
A typical cross GCC toolchain will come as x86_64-linux-gnu-gcc
too.