@@ -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 ,
@@ -108,8 +109,6 @@ pub struct Config {
108
109
/// Per-target configuration stored in the global configuration structure.
109
110
#[ derive( Default ) ]
110
111
pub struct Target {
111
- // `true` if compiling against system LLVM or a pre-built LLVM
112
- pub system_llvm : bool ,
113
112
pub llvm_config : Option < PathBuf > ,
114
113
pub jemalloc : Option < PathBuf > ,
115
114
pub cc : Option < PathBuf > ,
@@ -150,6 +149,7 @@ struct Build {
150
149
python : Option < String > ,
151
150
full_bootstrap : Option < bool > ,
152
151
extended : Option < bool > ,
152
+ sanitizers : Option < bool > ,
153
153
}
154
154
155
155
/// TOML representation of various global install decisions.
@@ -294,6 +294,7 @@ impl Config {
294
294
set ( & mut config. vendor , build. vendor ) ;
295
295
set ( & mut config. full_bootstrap , build. full_bootstrap ) ;
296
296
set ( & mut config. extended , build. extended ) ;
297
+ set ( & mut config. sanitizers , build. sanitizers ) ;
297
298
298
299
if let Some ( ref install) = toml. install {
299
300
config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
@@ -437,6 +438,7 @@ impl Config {
437
438
( "VENDOR" , self . vendor) ,
438
439
( "FULL_BOOTSTRAP" , self . full_bootstrap) ,
439
440
( "EXTENDED" , self . extended) ,
441
+ ( "SANITIZERS" , self . sanitizers) ,
440
442
}
441
443
442
444
match key {
@@ -514,7 +516,6 @@ impl Config {
514
516
. or_insert ( Target :: default ( ) ) ;
515
517
let root = parse_configure_path ( value) ;
516
518
target. llvm_config = Some ( push_exe_path ( root, & [ "bin" , "llvm-config" ] ) ) ;
517
- target. system_llvm = true ;
518
519
}
519
520
"CFG_JEMALLOC_ROOT" if value. len ( ) > 0 => {
520
521
let target = self . target_config . entry ( self . build . clone ( ) )
0 commit comments