Keep mangled-names as a default feature

This commit is contained in:
Paolo Teti 2018-02-25 01:11:49 +01:00
parent 86612733be
commit 7b81af044e
2 changed files with 9 additions and 6 deletions

View File

@ -30,7 +30,8 @@ case $1 in
RUSTFLAGS="-C debug-assertions=no -C lto" \
CARGO_INCREMENTAL=0 \
$run --test $t --features 'no_std mem c' --no-run
$run --test $t --no-default-features \
--features 'no_std mem c' --no-run
qemu-arm-static target/${1}/debug/$t-*
done
@ -38,16 +39,17 @@ case $1 in
t=${t%.rs}
RUSTFLAGS="-C lto" \
CARGO_INCREMENTAL=0 \
$run --test $t --features 'no_std mem c' --no-run --release
$run --test $t --no-default-features \
--features 'no_std mem c' --no-run --release
qemu-arm-static target/${1}/release/$t-*
done
;;
*)
run="cargo test --manifest-path testcrate/Cargo.toml --target $1"
$run --features mangled-names
$run --features mangled-names --release
$run --features 'mangled-names c'
$run --features 'mangled-names c' --release
$run
$run --release
$run --features c
$run --features c --release
;;
esac

View File

@ -25,4 +25,5 @@ utest-macros = { git = "https://github.com/japaric/utest" }
c = ["compiler_builtins/c"]
mem = ["compiler_builtins/mem"]
mangled-names = ["compiler_builtins/mangled-names"]
default = ["mangled-names"]
no_std = []