diff --git a/.travis.yml b/.travis.yml index 4a397979424b6..2f6076c05d70f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,8 @@ services: install: - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi script: - - cargo build - - cargo build --no-default-features + - cargo build --target=$TARGET + - cargo build --no-default-features --target=$TARGET - cargo generate-lockfile --manifest-path libc-test/Cargo.toml - if [[ $TRAVIS_OS_NAME = "linux" ]]; then sh ci/run-docker.sh $TARGET; diff --git a/src/unix/mod.rs b/src/unix/mod.rs index cb66c049fd013..d38ad1b7881a8 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -232,7 +232,7 @@ pub const INADDR_NONE: in_addr_t = 4294967295; cfg_if! { if #[cfg(dox)] { // on dox builds don't pull in anything - } else if #[cfg(all(not(stdbuild), feature = "use_std"))] { + } else if #[cfg(any(not(stdbuild), feature = "use_std"))] { // cargo build, don't pull in anything extra as the libstd dep // already pulls in all libs. } else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips"))))] {