Adding support for aarch64 build and needed apple-darwin build options
This commit is contained in:
parent
5455df4920
commit
e9e5cf61dc
6
.cargo/config.toml
Normal file
6
.cargo/config.toml
Normal 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"
|
22
Makefile
22
Makefile
@ -2,20 +2,26 @@ all:
|
|||||||
$(MAKE) build
|
$(MAKE) build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
cargo build -p warp-runner --release --target x86_64-unknown-linux-musl
|
cargo build -p warp-runner --release --target x86_64-unknown-linux-gnu
|
||||||
strip target/x86_64-unknown-linux-musl/release/warp-runner
|
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
|
cargo build -p warp-runner --release --target aarch64-unknown-linux-gnu
|
||||||
x86_64-apple-darwin15-strip target/x86_64-apple-darwin/release/warp-runner
|
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
|
cargo build -p warp-runner --release --target x86_64-pc-windows-gnu
|
||||||
strip target/x86_64-pc-windows-gnu/release/warp-runner.exe
|
strip target/x86_64-pc-windows-gnu/release/warp-runner.exe
|
||||||
|
|
||||||
cargo build -p warp-packer --release --target x86_64-unknown-linux-musl
|
cargo build -p warp-packer --release --target x86_64-unknown-linux-gnu
|
||||||
strip target/x86_64-unknown-linux-musl/release/warp-packer
|
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
|
cargo build -p warp-packer --release --target aarch64-unknown-linux-gnu
|
||||||
x86_64-apple-darwin15-strip target/x86_64-apple-darwin/release/warp-packer
|
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
|
cargo build -p warp-packer --release --target x86_64-pc-windows-gnu
|
||||||
strip target/x86_64-pc-windows-gnu/release/warp-packer.exe
|
strip target/x86_64-pc-windows-gnu/release/warp-packer.exe
|
||||||
|
@ -22,7 +22,11 @@ lazy_static! {
|
|||||||
let mut m = HashMap::new();
|
let mut m = HashMap::new();
|
||||||
m.insert(
|
m.insert(
|
||||||
"linux-x64",
|
"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(
|
m.insert(
|
||||||
"macos-x64",
|
"macos-x64",
|
||||||
|
Loading…
Reference in New Issue
Block a user