From 8eec2e3b0dd245435565bab4518cd24e284382ad Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:17:23 +0100 Subject: [PATCH] avm: Use `#[cfg(unix)]` when running UNIX-only functionality (#3464) --- avm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avm/src/lib.rs b/avm/src/lib.rs index 3de952ca01..5d50ad2bbe 100644 --- a/avm/src/lib.rs +++ b/avm/src/lib.rs @@ -273,7 +273,7 @@ pub fn install_version( fs::write(&bin_path, res.bytes()?)?; // Set file to executable on UNIX - #[cfg(not(target_os = "windows"))] + #[cfg(unix)] fs::set_permissions( bin_path, ::from_mode(0o775),