Skip to content

Commit

Permalink
fix(core): have freebsd use the unix mtime function (#20662)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Dec 8, 2023
1 parent 8fbf915 commit 9a48349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/native/utils/get_mod_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn get_mod_time(metadata: &Metadata) -> i64 {
metadata.last_write_time() as i64
}

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
pub fn get_mod_time(metadata: &Metadata) -> i64 {
use std::os::unix::fs::MetadataExt;
metadata.mtime()
Expand Down

0 comments on commit 9a48349

Please sign in to comment.