Skip to content

Remove useless conditional compilation #1308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions ci/dox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,21 @@ dox() {
rm -rf "target/doc/${arch}"
mkdir "target/doc/${arch}"

export RUSTFLAGS="--cfg core_arch_docs"
export RUSTDOCFLAGS="--cfg core_arch_docs"

cargo build --verbose --target "${target}" --manifest-path crates/core_arch/Cargo.toml
cargo build --verbose --target "${target}" --manifest-path crates/std_detect/Cargo.toml

rustdoc --verbose --target "${target}" \
-o "target/doc/${arch}" crates/core_arch/src/lib.rs \
--edition=2018 \
--crate-name core_arch \
--library-path "target/${target}/debug/deps" \
--cfg core_arch_docs
--library-path "target/${target}/debug/deps"
rustdoc --verbose --target "${target}" \
-o "target/doc/${arch}" crates/std_detect/src/lib.rs \
--edition=2018 \
--crate-name std_detect \
--library-path "target/${target}/debug/deps" \
--extern cfg_if="$(ls target/"${target}"/debug/deps/libcfg_if-*.rlib)" \
--extern libc="$(ls target/"${target}"/debug/deps/liblibc-*.rlib)" \
--cfg core_arch_docs
--extern libc="$(ls target/"${target}"/debug/deps/liblibc-*.rlib)"
}

dox i686 i686-unknown-linux-gnu
Expand Down
1 change: 0 additions & 1 deletion crates/core_arch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ readme = "README.md"
keywords = ["core", "simd", "arch", "intrinsics"]
categories = ["hardware-support", "no-std"]
license = "MIT OR Apache-2.0"
build = "build.rs"
edition = "2018"

[badges]
Expand Down
3 changes: 0 additions & 3 deletions crates/core_arch/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/core_arch/src/arm/v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ mod tests {
}

#[test]
#[cfg(dont_compile_me)] // FIXME need to add `v7` upstream in rustc
fn _rbit_u32() {
unsafe {
assert_eq!(
Expand Down