File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ enum EnvironmentCmd {
7676 rustc_perf_checkout_dir : Option < Utf8PathBuf > ,
7777
7878 /// Is LLVM for `rustc` built in shared library mode?
79- #[ arg( long, default_value_t = true ) ]
79+ #[ arg( long, default_value_t = true , action ( clap :: ArgAction :: Set ) ) ]
8080 llvm_shared : bool ,
8181
8282 /// Should BOLT optimization be used? If yes, host LLVM must have BOLT binaries
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ pub fn clear_llvm_files(env: &Environment) -> anyhow::Result<()> {
3636 // directories ourselves.
3737 log:: info!( "Clearing LLVM build files" ) ;
3838 delete_directory ( & env. build_artifacts ( ) . join ( "llvm" ) ) ?;
39- delete_directory ( & env. build_artifacts ( ) . join ( "lld" ) ) ?;
39+ if env. build_artifacts ( ) . join ( "lld" ) . is_dir ( ) {
40+ delete_directory ( & env. build_artifacts ( ) . join ( "lld" ) ) ?;
41+ }
4042 Ok ( ( ) )
4143}
4244
You can’t perform that action at this time.
0 commit comments