mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
216d7d035f
Cross-compiling Nu can be a little tricky due to dependencies. This PR makes it easy to use [`cross-rs`](https://github.com/cross-rs/cross), a popular tool for cross-compiling Rust code using Docker: ```bash cross build --target aarch64-unknown-linux-musl --release ``` I find this useful for compiling ARM binaries from x64. Easy to add more target triples later as needed.
9 lines
363 B
TOML
9 lines
363 B
TOML
# Configuration for cross-rs: https://github.com/cross-rs/cross
|
|
# Run cross-rs like this:
|
|
# cross build --target aarch64-unknown-linux-musl --release
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
dockerfile = "./docker/cross-rs/aarch64-unknown-linux-gnu.dockerfile"
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
dockerfile = "./docker/cross-rs/aarch64-unknown-linux-musl.dockerfile" |