Skip to content
Permalink
Browse files

cargo: add configs for various platforms

Signed-off-by: Sean Cross <sean@xobs.io>
  • Loading branch information...
xobs committed Aug 31, 2018
1 parent 1d0d45c commit 414083d86368b52844dad82dae8486aa2958cd12
Showing with 17 additions and 0 deletions.
  1. +17 −0 .cargo/config
@@ -0,0 +1,17 @@
#[build]
#target = "armv7-unknown-linux-gnueabihf"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
# Hack required for now -- see https://github.com/rust-lang/rust/issues/46651#issuecomment-402850885
rustflags = [
"-C", "link-arg=-lgcc"
]

# rustup target install armv7-unknown-linux-gnueabihf
# cargo build --release --target=armv7-unknown-linux-gnueabihf
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-gcc"

0 comments on commit 414083d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.