@@ -718,7 +718,7 @@ impl Config {
718
718
config. in_tree_llvm_info = config. git_info ( false , & config. src . join ( "src/llvm-project" ) ) ;
719
719
config. in_tree_gcc_info = config. git_info ( false , & config. src . join ( "src/gcc" ) ) ;
720
720
721
- toml. rust . as_ref ( ) . map ( |rust| {
721
+ if let Some ( rust ) = toml. rust . as_ref ( ) {
722
722
// FIXME(#133381): alt rustc builds currently do *not* have rustc debug assertions
723
723
// enabled. We should not download a CI alt rustc if we need rustc to have debug
724
724
// assertions (e.g. for crashes test suite). This can be changed once something like
@@ -749,7 +749,7 @@ impl Config {
749
749
debug_assertions_requested,
750
750
config. llvm_assertions ,
751
751
) ;
752
- } ) ;
752
+ } ;
753
753
754
754
if !is_user_configured_rust_channel && config. rust_info . is_from_tarball ( ) {
755
755
config. channel = ci_channel. into ( ) ;
@@ -795,9 +795,14 @@ impl Config {
795
795
. collect :: < Vec < PathBuf > > ( ) ,
796
796
) ;
797
797
798
+ // Though we are applying it here, but the enzyme from llvm should get preference.
799
+ config. llvm_enzyme =
800
+ config. llvm_enzyme || config. channel == "dev" || config. channel == "nightly" ;
801
+
798
802
config. apply_install_config ( toml. install ) ;
799
803
config. apply_gcc_config ( toml. gcc ) ;
800
804
config. apply_dist_config ( toml. dist ) ;
805
+ config. apply_llvm_config ( toml. llvm ) ;
801
806
802
807
config. apply_build_config (
803
808
toml. build ,
@@ -809,7 +814,6 @@ impl Config {
809
814
) ;
810
815
config. apply_target_config ( toml. target ) ;
811
816
config. apply_rust_config ( toml. rust , flags_warnings) ;
812
- config. apply_llvm_config ( toml. llvm ) ;
813
817
814
818
if config. llvm_from_ci {
815
819
let triple = & config. host_target . triple ;
0 commit comments