15 lines
502 B
Bash
Executable File
15 lines
502 B
Bash
Executable File
# linux amd64
|
|
cargo build --release
|
|
# linux aarch64
|
|
cross build --release --target aarch64-unknown-linux-gnu
|
|
# windows amd64
|
|
cross build --release --target x86_64-pc-windows-gnu
|
|
# windows aarch64
|
|
cargo xwin build --release --target aarch64-pc-windows-msvc
|
|
# MacOS amd64
|
|
export CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=rust-lld
|
|
cross build --release --target x86_64-apple-darwin
|
|
# MacOS aarch64
|
|
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=rust-lld
|
|
cross build --release --target aarch64-apple-darwin
|