diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-06-17 22:43:44 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-06-18 13:28:29 +0300 |
| commit | f76c3b7fb971fb7d8a0909f107378416bb2d2029 (patch) | |
| tree | 4c2b06af9b7882da987b1a2caabd3decc160528a /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | e794b0f8557c187b5909d889aa35071f81e0a4cc (diff) | |
| download | rust-f76c3b7fb971fb7d8a0909f107378416bb2d2029.tar.gz rust-f76c3b7fb971fb7d8a0909f107378416bb2d2029.zip | |
replace `remove_dir` with `remove_dir_all` in `helpers::symlink_dir`
When using `symlink_dir`, it first removes the existing link with `remove_dir`. However, if the path isn't a link and contains files, `remove_dir` fails with "DirectoryNotEmpty", which causes the symbolic linking to fail as well. We have this problem on linking 'rustlib/rust' because it contains files as an actual directory. Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
