add cargo config for cross-compilation

This commit is contained in:
Will Greenberg
2023-11-08 16:21:15 -08:00
parent 677d0b9d66
commit 1e8ab45b37

6
.cargo/config.toml Normal file
View File

@@ -0,0 +1,6 @@
[build]
target = "armv7-unknown-linux-gnueabihf"
rustflags = ["-C", "target-feature=+crt-static"]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"