diff --git a/rust/hg-core/src/dirstate/dirstate_map.rs b/rust/hg-core/src/dirstate/dirstate_map.rs --- a/rust/hg-core/src/dirstate/dirstate_map.rs +++ b/rust/hg-core/src/dirstate/dirstate_map.rs @@ -396,6 +396,7 @@ return file_fold_map; } let mut new_file_fold_map = FileFoldMap::default(); + #[cfg(not(target_os="macos"))] for (filename, DirstateEntry { state, .. }) in self.state_map.borrow() { if *state == EntryState::Removed { diff --git a/rust/hg-core/src/lib.rs b/rust/hg-core/src/lib.rs --- a/rust/hg-core/src/lib.rs +++ b/rust/hg-core/src/lib.rs @@ -26,11 +26,10 @@ pub mod operations; pub mod utils; -// Remove this to see (potential) non-artificial compile failures. MacOS -// *should* compile, but fail to compile tests for example as of 2020-03-06 -#[cfg(not(target_os = "linux"))] +// Remove this to see (potential) non-artificial compile failures. +#[cfg(not(any(target_os = "linux", target_os = "macos")))] compile_error!( - "`hg-core` has only been tested on Linux and will most \ + "`hg-core` has only been tested on Linux and macOS and will most \ likely not behave correctly on other platforms." );