rust-lang / docker-rust

The official Docker images for Rust
436 stars 88 forks source link

Set default_host_triple in rustup config #64

Closed tilosp closed 4 years ago

tilosp commented 4 years ago

Currently if you use the i686 image on an x86_64 host (or armv7 on an aarch64 host) rustup tries to download the x86_64 (or aarch64) binaries. This won't work because the dependencies installed by apt are still i686 (or armv7).

This pr ensures that the arch of the applications installed by rustup always matches the arch of the dependencies installed by apt. No matter the cpu arch this image is running on.

This allows the building of derived images for i686 on x86_64 hosts, and armv7 images on aarch64 hosts.

sfackler commented 4 years ago

Thanks!