Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent the Unix implementation being optimised away in release mode #18

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

dspeyrer
Copy link
Contributor

When building for release mode, the call to ioctl in the Unix implementation is being optimised away, and zero values are being returned. This is because the data output structure and the reference to it being passed to the ioctl syscall are not mutable.

@softprops
Copy link
Owner

Nice find

@softprops softprops merged commit 7fedea2 into softprops:master Apr 10, 2024
@Ezrashaw
Copy link

It might be helpful for there to be a crates.io release so that this can get out to everyone.

It'd help out a lot, especially for me :P

@softprops
Copy link
Owner

apologies. very belated but I've finally published change. it should be available in 0.1.7. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants