Skip to content

Commit a29bb5c

Browse files
committed
bootstrap: add an initial stdarch test step
1 parent 5b61449 commit a29bb5c

File tree

14 files changed

+493
-83
lines changed

14 files changed

+493
-83
lines changed

library/stdarch/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ incremental = true
1818
debug = 1
1919
opt-level = 3
2020
incremental = true
21+
22+
# The "dist" profile is used by bootstrap when building stdarch docs as part
23+
# of the distribution pipeline. Keep it aligned with the library workspace so
24+
# `cargo doc --profile=dist` works when stdarch is built as its own workspace.
25+
[profile.dist]
26+
inherits = "release"
27+
codegen-units = 1
28+
debug = 1

library/stdarch/examples/gaussian.rs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,26 @@
1919
//!
2020
//! To build (requires Hexagon toolchain):
2121
//!
22-
//! RUSTFLAGS="-C target-feature=+hvxv62,+hvx-length128b \
23-
//! -C linker=hexagon-unknown-linux-musl-clang" \
24-
//! cargo +nightly build -p stdarch_examples --bin gaussian \
25-
//! --target hexagon-unknown-linux-musl \
26-
//! -Zbuild-std -Zbuild-std-features=llvm-libunwind
22+
//! ```text
23+
//! RUSTFLAGS="-C target-feature=+hvxv62,+hvx-length128b \
24+
//! -C linker=hexagon-unknown-linux-musl-clang" \
25+
//! cargo +nightly build -p stdarch_examples --bin gaussian \
26+
//! --target hexagon-unknown-linux-musl \
27+
//! -Zbuild-std -Zbuild-std-features=llvm-libunwind
28+
//! ```
2729
//!
2830
//! To run under QEMU:
2931
//!
30-
//! qemu-hexagon -L <sysroot>/target/hexagon-unknown-linux-musl \
31-
//! target/hexagon-unknown-linux-musl/debug/gaussian
32+
//! ```text
33+
//! qemu-hexagon -L <sysroot>/target/hexagon-unknown-linux-musl \
34+
//! target/hexagon-unknown-linux-musl/debug/gaussian
35+
//! ```
3236
//!
3337
//! # Building and Running (Other targets)
3438
//!
35-
//! cargo +nightly run -p stdarch_examples --bin gaussian
39+
//! ```text
40+
//! cargo +nightly run -p stdarch_examples --bin gaussian
41+
//! ```
3642
3743
#![cfg_attr(target_arch = "hexagon", feature(stdarch_hexagon))]
3844
#![cfg_attr(target_arch = "hexagon", feature(hexagon_target_feature))]

0 commit comments

Comments
 (0)