Files
leaf/misc/build_cross.sh
2021-02-17 00:14:51 +08:00

10 lines
330 B
Bash
Executable File

#!/usr/bin/env bash
target=$1
if [[ "$target" == *"mips"* ]]; then
cross build --release --target $target --manifest-path leaf-bin/Cargo.toml --no-default-features --features "default-openssl"
else
cross build --release --target $target --manifest-path leaf-bin/Cargo.toml --no-default-features --features "default-ring"
fi