File tree 1 file changed +6
-1
lines changed
src/bootstrap/src/core/config 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1632,7 +1632,6 @@ impl Config {
1632
1632
set ( & mut config. docs_minification , docs_minification) ;
1633
1633
set ( & mut config. docs , docs) ;
1634
1634
set ( & mut config. locked_deps , locked_deps) ;
1635
- set ( & mut config. vendor , vendor) ;
1636
1635
set ( & mut config. full_bootstrap , full_bootstrap) ;
1637
1636
set ( & mut config. extended , extended) ;
1638
1637
config. tools = tools;
@@ -1711,6 +1710,12 @@ impl Config {
1711
1710
config. in_tree_llvm_info = GitInfo :: new ( false , & config. src . join ( "src/llvm-project" ) ) ;
1712
1711
config. in_tree_gcc_info = GitInfo :: new ( false , & config. src . join ( "src/gcc" ) ) ;
1713
1712
1713
+ config. vendor = vendor. unwrap_or (
1714
+ config. rust_info . is_from_tarball ( )
1715
+ && config. src . join ( "vendor" ) . exists ( )
1716
+ && config. src . join ( ".cargo/config.toml" ) . exists ( ) ,
1717
+ ) ;
1718
+
1714
1719
if let Some ( rust) = toml. rust {
1715
1720
let Rust {
1716
1721
optimize : optimize_toml,
You can’t perform that action at this time.
0 commit comments