Skip to content

Commit

Permalink
build-update
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed May 6, 2024
1 parent 58a00d4 commit 02f0ea7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ fn generate_aarch64_outlined_atomics() {
std::fs::write(dst, buf).unwrap();
}

/// Emit directives for features we expect to support that aren't in `Cargo.toml`
/// Emit directives for features we expect to support that aren't in `Cargo.toml`.
///
/// These are mostly cfg elements emitted by this `build.rs`.
fn configure_check_cfg() {
// Functions where we can set the "optimized-c" flag
const HAS_OPTIMIZED_C: &[&str] = &[
Expand Down Expand Up @@ -185,6 +187,8 @@ fn configure_check_cfg() {
println!("cargo::rustc-check-cfg=cfg(feature, values(\"unstable\"))");
println!("cargo::rustc-check-cfg=cfg(assert_no_panic)");
println!("cargo::rustc-check-cfg=cfg(kernel_user_helpers)");
println!("cargo::rustc-check-cfg=cfg(rustbuild)");
println!("cargo::rustc-check-cfg=cfg(thumb)");

// FIXME: this feature definitely exists in
// `rustc --print target-features --target sparc64-unknown-linux-gnu`. Why do check-cfg
Expand Down

0 comments on commit 02f0ea7

Please sign in to comment.