Docker, Cargo: Add multi-arch builds for arm64, x86_64
Builds static binaries instead to be runnable from scratch. This eases the build process, as we don't have to depend on docker's buildx. Now images for both arm64 and x86_64 can be built on x86_64 platform alone. Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
7
.cargo/config.toml
Normal file
7
.cargo/config.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
Reference in New Issue
Block a user