Adding support for aarch64 build and needed apple-darwin build options

This commit is contained in:
david 2024-05-16 11:00:20 +02:00
parent 5455df4920
commit e9e5cf61dc
3 changed files with 25 additions and 9 deletions

6
.cargo/config.toml Normal file
View File

@ -0,0 +1,6 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
[target.x86_64-apple-darwin]
linker = "x86_64-apple-darwin16-clang"
ar = "x86_64-apple-darwin16-ar"

View File

@ -2,20 +2,26 @@ all:
$(MAKE) build
build:
cargo build -p warp-runner --release --target x86_64-unknown-linux-musl
strip target/x86_64-unknown-linux-musl/release/warp-runner
cargo build -p warp-runner --release --target x86_64-unknown-linux-gnu
strip target/x86_64-unknown-linux-gnu/release/warp-runner
CC=x86_64-apple-darwin15-clang cargo build -p warp-runner --release --target x86_64-apple-darwin
x86_64-apple-darwin15-strip target/x86_64-apple-darwin/release/warp-runner
cargo build -p warp-runner --release --target aarch64-unknown-linux-gnu
aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/warp-runner
cargo build -p warp-runner --release --target x86_64-apple-darwin
x86_64-apple-darwin16-strip target/x86_64-apple-darwin/release/warp-runner
cargo build -p warp-runner --release --target x86_64-pc-windows-gnu
strip target/x86_64-pc-windows-gnu/release/warp-runner.exe
cargo build -p warp-packer --release --target x86_64-unknown-linux-musl
strip target/x86_64-unknown-linux-musl/release/warp-packer
cargo build -p warp-packer --release --target x86_64-unknown-linux-gnu
strip target/x86_64-unknown-linux-gnu/release/warp-packer
CC=x86_64-apple-darwin15-clang cargo build -p warp-packer --release --target x86_64-apple-darwin
x86_64-apple-darwin15-strip target/x86_64-apple-darwin/release/warp-packer
cargo build -p warp-packer --release --target aarch64-unknown-linux-gnu
aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/warp-packer
cargo build -p warp-packer --release --target x86_64-apple-darwin
x86_64-apple-darwin16-strip target/x86_64-apple-darwin/release/warp-packer
cargo build -p warp-packer --release --target x86_64-pc-windows-gnu
strip target/x86_64-pc-windows-gnu/release/warp-packer.exe

View File

@ -22,7 +22,11 @@ lazy_static! {
let mut m = HashMap::new();
m.insert(
"linux-x64",
include_bytes!("../../target/x86_64-unknown-linux-musl/release/warp-runner").as_slice(),
include_bytes!("../../target/x86_64-unknown-linux-gnu/release/warp-runner").as_slice(),
);
m.insert(
"linux-aarch64",
include_bytes!("../../target/aarch64-unknown-linux-gnu/release/warp-runner").as_slice(),
);
m.insert(
"macos-x64",