From 1e8ab45b372b5bd93d545ca9195efefdeef81a6b Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Wed, 8 Nov 2023 16:21:15 -0800 Subject: [PATCH] add cargo config for cross-compilation --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..63aa865 --- /dev/null +++ b/.cargo/config.toml @@ -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"