jemalloc-ctl does not build for musl targets

This commit is contained in:
gnzlbg 2018-11-07 23:31:35 +01:00 committed by gnzlbg
parent 0a711d8fc1
commit 61d4c6ec29
3 changed files with 17 additions and 5 deletions

View File

@ -133,6 +133,7 @@ matrix:
- name: "clippy"
install: true
rust: nightly
# allow(clippy::all) fails in the syscrate, so we can't use --all here:
script: |
if rustup component add clippy-preview; then
cargo clippy -p jemalloc-sys -- -D clippy::pedantic

View File

@ -94,10 +94,22 @@ ${CARGO_CMD} test -vv --target "${TARGET}" --manifest-path jemalloc-sys/Cargo.to
${CARGO_CMD} test -vv --target "${TARGET}" \
--manifest-path jemalloc-sys/Cargo.toml \
--features unprefixed_malloc_on_supported_platforms
${CARGO_CMD} test -vv --target "${TARGET}" --manifest-path jemalloc-ctl/Cargo.toml \
--no-default-features
${CARGO_CMD} test -vv --target "${TARGET}" --manifest-path jemalloc-ctl \
--no-default-features --features use_std
# FIXME: jemalloc-ctl fails in the following targets
case "${TARGET}" in
"i686-unknown-linux-musl") ;;
*)
${CARGO_CMD} test -vv --target "${TARGET}" \
--manifest-path jemalloc-ctl/Cargo.toml \
--no-default-features
# FIXME: cross fails to pass features to jemalloc-ctl
# ${CARGO_CMD} test -vv --target "${TARGET}" \
# --manifest-path jemalloc-ctl \
# --no-default-features --features use_std
;;
esac
${CARGO_CMD} test -vv --target "${TARGET}" -p systest
${CARGO_CMD} test -vv --target "${TARGET}" \
--manifest-path jemallocator-global/Cargo.toml

View File

@ -2,7 +2,6 @@
name = "jemalloc-ctl"
version = "0.3.0"
authors = ["Steven Fackler <sfackler@gmail.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["memory-management", "api-bindings", "development-tools" ]