Skip to content

Commit

Permalink
avm: Use #[cfg(unix)] when running UNIX-only functionality (#3464)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Jan 2, 2025
1 parent 08110e9 commit 8eec2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
<fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o775),
Expand Down

0 comments on commit 8eec2e3

Please sign in to comment.