#Getting default target
2 messages · Page 1 of 1 (latest)
" If --target is not specified, Cargo runs in a mode where it builds for the host architecture. " https://doc.rust-lang.org/cargo/guide/build-cache.html
2 messages · Page 1 of 1 (latest)
How would I go about getting the default target cargo is using from a build script? I want the target triple that cargo is putting in the root of the target/ folder.
./
../
CACHEDIR.TAG
debug/ <- this one
package/
.rustc_info.json
tmp/
x86_64-unknown-linux-gnu/ <- not this one
" If --target is not specified, Cargo runs in a mode where it builds for the host architecture. " https://doc.rust-lang.org/cargo/guide/build-cache.html