From 9a48349b138eb16c66a6071e444e137d537a7dae Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Fri, 8 Dec 2023 11:35:54 -0500 Subject: [PATCH] fix(core): have freebsd use the unix mtime function (#20662) --- packages/nx/src/native/utils/get_mod_time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/native/utils/get_mod_time.rs b/packages/nx/src/native/utils/get_mod_time.rs index 8171a23bbf434..f50481cae56cf 100644 --- a/packages/nx/src/native/utils/get_mod_time.rs +++ b/packages/nx/src/native/utils/get_mod_time.rs @@ -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()