Skip to content

Commit 02f0ea7

Browse files
committed
build-update
1 parent 58a00d4 commit 02f0ea7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ fn generate_aarch64_outlined_atomics() {
146146
std::fs::write(dst, buf).unwrap();
147147
}
148148

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

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

0 commit comments

Comments
 (0)