We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8859998 commit 4da5444Copy full SHA for 4da5444
crates/cargo-util/src/du.rs
@@ -39,7 +39,14 @@ fn du_inner(path: &Path, patterns: &[&str]) -> Result<u64> {
39
.git_ignore(false)
40
.git_exclude(false);
41
let walker = builder.build_parallel();
42
+
43
+ // Platforms like PowerPC don't support AtomicU64, so we a Mutex instead.
44
+ //
45
+ // See:
46
+ // - https://github.com/rust-lang/cargo/pull/12981
47
+ // - https://github.com/rust-lang/rust/pull/117916#issuecomment-1812635848
48
let total = Arc::new(Mutex::new(0u64));
49
50
// A slot used to indicate there was an error while walking.
51
//
52
// It is possible that more than one error happens (such as in different
0 commit comments