@@ -53,6 +53,7 @@ pub struct Config {
53
53
pub profiler : bool ,
54
54
55
55
// llvm codegen options
56
+ pub llvm_enabled : bool ,
56
57
pub llvm_assertions : bool ,
57
58
pub llvm_optimize : bool ,
58
59
pub llvm_release_debuginfo : bool ,
@@ -182,6 +183,7 @@ struct Install {
182
183
/// TOML representation of how the LLVM build is configured.
183
184
#[ derive( RustcDecodable , Default ) ]
184
185
struct Llvm {
186
+ enabled : Option < bool > ,
185
187
ccache : Option < StringOrBool > ,
186
188
ninja : Option < bool > ,
187
189
assertions : Option < bool > ,
@@ -252,6 +254,7 @@ struct TomlTarget {
252
254
impl Config {
253
255
pub fn parse ( build : & str , file : Option < PathBuf > ) -> Config {
254
256
let mut config = Config :: default ( ) ;
257
+ config. llvm_enabled = true ;
255
258
config. llvm_optimize = true ;
256
259
config. use_jemalloc = true ;
257
260
config. backtrace = true ;
@@ -345,6 +348,7 @@ impl Config {
345
348
Some ( StringOrBool :: Bool ( false ) ) | None => { }
346
349
}
347
350
set ( & mut config. ninja , llvm. ninja ) ;
351
+ set ( & mut config. llvm_enabled , llvm. enabled ) ;
348
352
set ( & mut config. llvm_assertions , llvm. assertions ) ;
349
353
set ( & mut config. llvm_optimize , llvm. optimize ) ;
350
354
set ( & mut config. llvm_release_debuginfo , llvm. release_debuginfo ) ;
0 commit comments