When working with gcc, I can get what gcc thinks is my host's triplet by running gcc -dumpmachine. On my current system, this gives me x86_64-linux-gnu.
How can I get stable rustc to print my host triple? (x86_64-unknown-linux-gnu in this case)
rustc's documentation doesn't seem to contain anything relevant besides the --print and --version. Neither seem to produce the host target triple.
Clarification: with two answers being given about nightly so far, I want to stress that this question is specifically about stable rustc compilers.
Will give you some output like:
Where host is your target triple.