I want to override a build script, which means adding a configuration section that looks like this:
[target.x86_64-unknown-linux-gnu.foo]
rustc-link-search = ["/path/to/foo"]
rustc-link-lib = ["foo"]
root = "/path/to/foo"
key = "value"
But I'm using a Mac, so x86_64-unknown-linux-gnu
isn't the correct target triple.
How do I discover which target triple rustc or cargo are currently using?
rustc --print cfg
prints a list of values that don't seem to correspond to the triple (there's no unknown
in there, in particular).
rustc --print target-list
displays all available targets; I just want the default.