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),