Files
rust/library/stdarch/ci/dox.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Bash
Raw Normal View History

2018-11-10 15:45:16 +01:00
#!/usr/bin/env bash
2017-09-25 13:13:01 -07:00
# Builds documentation for all target triples that we have a registered URL for
# in liblibc. This scrapes the list of triples to document from `src/lib.rs`
# which has a bunch of `html_root_url` directives we pick up.
2019-01-22 17:49:02 +01:00
set -ex
2017-09-25 13:13:01 -07:00
2025-04-11 12:07:45 +07:00
export RUSTDOCFLAGS="-D warnings"
2017-09-25 13:13:01 -07:00
dox() {
2017-09-25 13:15:32 -07:00
if [ "$CI" != "" ]; then
rustup target add "${1}" || true
2017-09-25 13:15:32 -07:00
fi
cargo clean --target "${1}"
2017-09-25 13:13:01 -07:00
cargo build --verbose --target "${1}" --manifest-path crates/core_arch/Cargo.toml
cargo doc --verbose --target "${1}" --manifest-path crates/core_arch/Cargo.toml
2017-09-25 13:13:01 -07:00
}
if [ -z "$1" ]; then
dox i686-unknown-linux-gnu
dox x86_64-unknown-linux-gnu
dox armv7-unknown-linux-gnueabihf
dox aarch64-unknown-linux-gnu
dox powerpc-unknown-linux-gnu
dox powerpc64le-unknown-linux-gnu
dox loongarch64-unknown-linux-gnu
# MIPS targets disabled since they are dropped to tier 3.
# See https://github.com/rust-lang/compiler-team/issues/648
#dox mips-unknown-linux-gnu
#dox mips64-unknown-linux-gnuabi64
dox wasm32-unknown-unknown
dox nvptx64-nvidia-cuda
else
dox "${1}"
2025-04-11 12:07:45 +07:00
fi