@@ -40,6 +40,7 @@ pub struct BuildConfigRead {
40
40
pub overflow_checks : Option < OverflowChecks > ,
41
41
pub incremental : Option < Incremental > ,
42
42
pub build_std : Option < bool > ,
43
+ pub native : Option < bool > ,
43
44
}
44
45
45
46
#[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
@@ -56,6 +57,7 @@ pub struct BuildConfig {
56
57
pub overflow_checks : OverflowChecks ,
57
58
pub incremental : Incremental ,
58
59
pub build_std : bool ,
60
+ pub native : bool ,
59
61
}
60
62
61
63
impl From < BuildConfigRead > for BuildConfig {
@@ -74,6 +76,7 @@ impl From<BuildConfigRead> for BuildConfig {
74
76
overflow_checks : OverflowChecks :: Off ,
75
77
incremental : Incremental :: Off ,
76
78
build_std : false ,
79
+ native : false ,
77
80
} ,
78
81
RustBaseConfig :: Debug => BuildConfig {
79
82
name : "debug" . to_string ( ) ,
@@ -88,6 +91,7 @@ impl From<BuildConfigRead> for BuildConfig {
88
91
overflow_checks : OverflowChecks :: On ,
89
92
incremental : Incremental :: On ,
90
93
build_std : false ,
94
+ native : false ,
91
95
}
92
96
} ;
93
97
@@ -104,6 +108,7 @@ impl From<BuildConfigRead> for BuildConfig {
104
108
overflow_checks : config. overflow_checks . unwrap_or ( base_config. overflow_checks ) ,
105
109
incremental : config. incremental . unwrap_or ( base_config. incremental ) ,
106
110
build_std : config. build_std . unwrap_or ( false ) ,
111
+ native : config. native . unwrap_or ( false ) ,
107
112
}
108
113
}
109
114
}
0 commit comments