-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-bugCategory: bugCategory: bugCommand-cleanE-easyExperience: EasyExperience: EasyO-windowsOS: WindowsOS: WindowsS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Problem
When using the cxx crate to generate rust <> C++ bindings, cargo clean
fails. The error is due to failure to delete directories generated by the cxx tool chain under the target
directory.
Steps
- Clone https://github.com/dtolnay/cxx
- cd to the
demo
directory - Run
cargo build
- Run
cargo clean
- It will fail with the following error:
error: failed to remove file<homedir>\projects\other\cxx\target\debug\build\cxx-test-suite-2dda1da2c847afa7\out\cxxbridge\crate\tests\ffi
Possible Solution(s)
It seems that it is failing to remove a directory that is not empty and/or has sub-directories.
Notes
No response
Version
cargo version --verbose
cargo 1.77.1 (e52e36006 2024-03-26)
release: 1.77.1
commit-hash: e52e360061cacbbeac79f7f1215a7a90b6f08442
commit-date: 2024-03-26
host: x86_64-pc-windows-msvc
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.5.0-DEV (sys:0.4.70+curl-8.5.0 vendored ssl:Schannel)
os: Windows 10.0.19045 (Windows 10 Pro) [64-bit]
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugCommand-cleanE-easyExperience: EasyExperience: EasyO-windowsOS: WindowsOS: WindowsS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review