File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,17 @@ pub fn run_ex<DB: WriteResults + Sync>(
64
64
let graph = Mutex :: new ( build_graph ( ex, crates, config) ) ;
65
65
let parked_threads = Condvar :: new ( ) ;
66
66
67
+ info ! ( "uninstalling toolchains..." ) ;
68
+ // Clean out all the toolchains currently installed. This minimizes the
69
+ // amount of disk space used by the base system, letting the task execution
70
+ // proceed slightly faster than it would otherwise.
71
+ for tc in workspace. installed_toolchains ( ) ? {
72
+ // But don't uninstall it if we're going to reinstall in a couple lines.
73
+ if !ex. toolchains . iter ( ) . any ( |t| tc == t. source ) {
74
+ tc. uninstall ( workspace) ?;
75
+ }
76
+ }
77
+
67
78
info ! ( "preparing the execution..." ) ;
68
79
for tc in & ex. toolchains {
69
80
tc. install ( workspace) ?;
You can’t perform that action at this time.
0 commit comments