File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,9 @@ fn generate_aarch64_outlined_atomics() {
146
146
std:: fs:: write ( dst, buf) . unwrap ( ) ;
147
147
}
148
148
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`.
150
152
fn configure_check_cfg ( ) {
151
153
// Functions where we can set the "optimized-c" flag
152
154
const HAS_OPTIMIZED_C : & [ & str ] = & [
@@ -185,6 +187,8 @@ fn configure_check_cfg() {
185
187
println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" unstable\" ))" ) ;
186
188
println ! ( "cargo::rustc-check-cfg=cfg(assert_no_panic)" ) ;
187
189
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)" ) ;
188
192
189
193
// FIXME: this feature definitely exists in
190
194
// `rustc --print target-features --target sparc64-unknown-linux-gnu`. Why do check-cfg
You can’t perform that action at this time.
0 commit comments