2018-05-25 00:29:52 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
2018-05-25 01:19:22 +08:00
|
|
|
set -ev
|
|
|
|
|
2018-05-25 00:50:36 +08:00
|
|
|
if [ -z "$NO_STD" ]; then
|
2018-05-25 05:56:47 +08:00
|
|
|
if [ -z "$LAPACK" ]; then
|
2019-07-26 22:29:16 +08:00
|
|
|
cargo build --verbose -p nalgebra --no-default-features --lib;
|
2018-05-25 05:56:47 +08:00
|
|
|
cargo build --verbose -p nalgebra;
|
2019-09-16 19:41:26 +08:00
|
|
|
cargo build --verbose -p nalgebra --features "rand";
|
2018-05-25 05:56:47 +08:00
|
|
|
cargo build --verbose -p nalgebra --features "arbitrary";
|
|
|
|
cargo build --verbose -p nalgebra --features "mint";
|
|
|
|
cargo build --verbose -p nalgebra --features "alloc";
|
|
|
|
cargo build --verbose -p nalgebra --features "serde-serialize";
|
|
|
|
cargo build --verbose -p nalgebra --features "abomonation-serialize";
|
|
|
|
cargo build --verbose -p nalgebra --features "debug";
|
2019-02-03 21:18:55 +08:00
|
|
|
cargo build --verbose -p nalgebra --all-features
|
2018-05-25 05:56:47 +08:00
|
|
|
else
|
|
|
|
cargo build -p nalgebra-lapack;
|
|
|
|
fi
|
2018-05-25 00:29:52 +08:00
|
|
|
else
|
2018-05-25 05:56:47 +08:00
|
|
|
if [ "$CARGO_FEATURES" == "alloc" ]; then
|
|
|
|
cat << EOF > Xargo.toml
|
|
|
|
[target.x86_64-unknown-linux-gnu.dependencies]
|
|
|
|
alloc = {}
|
|
|
|
EOF
|
|
|
|
fi
|
2018-05-25 00:50:36 +08:00
|
|
|
rustup component add rust-src
|
2018-05-25 05:56:47 +08:00
|
|
|
cargo install xargo
|
2018-05-25 00:29:52 +08:00
|
|
|
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
|
2019-09-16 19:41:26 +08:00
|
|
|
fi
|