@@ -74,6 +74,7 @@ pub struct Config {
7474 pub backtrace_on_ice : bool ,
7575
7676 // llvm codegen options
77+ pub llvm_enabled : bool ,
7778 pub llvm_assertions : bool ,
7879 pub llvm_optimize : bool ,
7980 pub llvm_release_debuginfo : bool ,
@@ -238,6 +239,7 @@ struct Install {
238239#[ derive( Deserialize , Default ) ]
239240#[ serde( deny_unknown_fields, rename_all = "kebab-case" ) ]
240241struct Llvm {
242+ enabled : Option < bool > ,
241243 ccache : Option < StringOrBool > ,
242244 ninja : Option < bool > ,
243245 assertions : Option < bool > ,
@@ -339,6 +341,7 @@ impl Config {
339341
340342 pub fn default_opts ( ) -> Config {
341343 let mut config = Config :: default ( ) ;
344+ config. llvm_enabled = true ;
342345 config. llvm_optimize = true ;
343346 config. llvm_version_check = true ;
344347 config. use_jemalloc = true ;
@@ -493,6 +496,7 @@ impl Config {
493496 Some ( StringOrBool :: Bool ( false ) ) | None => { }
494497 }
495498 set ( & mut config. ninja , llvm. ninja ) ;
499+ set ( & mut config. llvm_enabled , llvm. enabled ) ;
496500 llvm_assertions = llvm. assertions ;
497501 set ( & mut config. llvm_optimize , llvm. optimize ) ;
498502 set ( & mut config. llvm_release_debuginfo , llvm. release_debuginfo ) ;
0 commit comments