File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ enum EnvironmentCmd {
76
76
rustc_perf_checkout_dir : Option < Utf8PathBuf > ,
77
77
78
78
/// 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 ) ) ]
80
80
llvm_shared : bool ,
81
81
82
82
/// 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<()> {
36
36
// directories ourselves.
37
37
log:: info!( "Clearing LLVM build files" ) ;
38
38
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
+ }
40
42
Ok ( ( ) )
41
43
}
42
44
You can’t perform that action at this time.
0 commit comments