File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ fn smoke_test_inputs() {
10
10
use build_rs:: input:: * ;
11
11
dbg ! ( cargo( ) ) ;
12
12
dbg ! ( cargo_cfg( "careful" ) ) ;
13
- dbg ! ( cargo_cfg_debug_assertions( ) ) ;
14
13
#[ cfg( feature = "unstable" ) ]
15
14
dbg ! ( cargo_cfg_fmt_debug( ) ) ;
16
15
#[ cfg( feature = "unstable" ) ]
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ mod cfg {
109
109
}
110
110
111
111
/// If we are compiling with debug assertions enabled.
112
+ ///
113
+ /// Build scripts are not passed this cfg because
114
+ /// this cfg is always true and misleading.
115
+ /// That is because Cargo queries rustc without any profile settings.
116
+ #[ cfg( any( ) ) ]
112
117
#[ track_caller]
113
118
pub fn cargo_cfg_debug_assertions ( ) -> bool {
114
119
is_present ( "CARGO_CFG_DEBUG_ASSERTIONS" )
You can’t perform that action at this time.
0 commit comments