--- crates/cargo-util/src/paths.rs.orig	2022-04-04 02:41:28.000000000 -0700
+++ crates/cargo-util/src/paths.rs	2022-04-10 08:55:43.000000000 -0700
@@ -762,10 +762,10 @@
     }
 }
 
-#[cfg(not(target_os = "macos"))]
+#[cfg(target_os = "macos")]
 fn exclude_from_time_machine(_: &Path) {}
 
-#[cfg(target_os = "macos")]
+#[cfg(not(target_os = "macos"))]
 /// Marks files or directories as excluded from Time Machine on macOS
 fn exclude_from_time_machine(path: &Path) {
     use core_foundation::base::TCFType;
