@@ -48,6 +48,7 @@ pub struct Config {
48
48
pub target_config : HashMap < String , Target > ,
49
49
pub full_bootstrap : bool ,
50
50
pub extended : bool ,
51
+ pub sanitizers : bool ,
51
52
52
53
// llvm codegen options
53
54
pub llvm_assertions : bool ,
@@ -149,6 +150,7 @@ struct Build {
149
150
python : Option < String > ,
150
151
full_bootstrap : Option < bool > ,
151
152
extended : Option < bool > ,
153
+ sanitizers : Option < bool > ,
152
154
}
153
155
154
156
/// TOML representation of various global install decisions.
@@ -294,6 +296,7 @@ impl Config {
294
296
set ( & mut config. vendor , build. vendor ) ;
295
297
set ( & mut config. full_bootstrap , build. full_bootstrap ) ;
296
298
set ( & mut config. extended , build. extended ) ;
299
+ set ( & mut config. sanitizers , build. sanitizers ) ;
297
300
298
301
if let Some ( ref install) = toml. install {
299
302
config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
@@ -438,6 +441,7 @@ impl Config {
438
441
( "VENDOR" , self . vendor) ,
439
442
( "FULL_BOOTSTRAP" , self . full_bootstrap) ,
440
443
( "EXTENDED" , self . extended) ,
444
+ ( "SANITIZERS" , self . sanitizers) ,
441
445
}
442
446
443
447
match key {
0 commit comments