@@ -48,6 +48,7 @@ pub struct Config {
4848 pub target_config : HashMap < String , Target > ,
4949 pub full_bootstrap : bool ,
5050 pub extended : bool ,
51+ pub sanitizers : bool ,
5152
5253 // llvm codegen options
5354 pub llvm_assertions : bool ,
@@ -149,6 +150,7 @@ struct Build {
149150 python : Option < String > ,
150151 full_bootstrap : Option < bool > ,
151152 extended : Option < bool > ,
153+ sanitizers : Option < bool > ,
152154}
153155
154156/// TOML representation of various global install decisions.
@@ -294,6 +296,7 @@ impl Config {
294296 set ( & mut config. vendor , build. vendor ) ;
295297 set ( & mut config. full_bootstrap , build. full_bootstrap ) ;
296298 set ( & mut config. extended , build. extended ) ;
299+ set ( & mut config. sanitizers , build. sanitizers ) ;
297300
298301 if let Some ( ref install) = toml. install {
299302 config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
@@ -438,6 +441,7 @@ impl Config {
438441 ( "VENDOR" , self . vendor) ,
439442 ( "FULL_BOOTSTRAP" , self . full_bootstrap) ,
440443 ( "EXTENDED" , self . extended) ,
444+ ( "SANITIZERS" , self . sanitizers) ,
441445 }
442446
443447 match key {
0 commit comments