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

fix: remove preadv2 optimization #88

Merged
merged 1 commit into from
Apr 20, 2024
Merged

Conversation

weihanglo
Copy link
Member

This optimization has introduced many compatibility issues, so remove it for now until we find it worthy the investment.

See also

This optimization has introduced many compatibility issues,
so remove it for now until we find it worthy the investment.

See also

* <rust-lang/cc-rs#1039>
* <rust-lang#87>
@the8472
Copy link
Member

the8472 commented Apr 20, 2024

You can use libc::syscall(SYS_preadv2, ...) to invoke the function without direct glibc support. If the kernel doesn't support it you'll get ENOSYS as usual.

@weihanglo
Copy link
Member Author

Thanks! That sounds also correct, though I personally don't have time investing in it (also have less experience of that). Need somebody else to work on that route.

@ofek
Copy link

ofek commented Apr 20, 2024

If it's not a one or two line change then I agree that we should revert for now to fix builds. I would be interested in the syscall change however because that seems simple but I'm not familiar with the code base.

@petrochenkov petrochenkov merged commit 66782f5 into rust-lang:main Apr 20, 2024
15 checks passed
@ofek
Copy link

ofek commented Apr 21, 2024

When might this be released?

@NobodyXu
Copy link
Contributor

I've asked @petrochenkov to do so on zulip, only they have the right to publish a new release

@weihanglo weihanglo deleted the preadv2 branch April 21, 2024 03:52
joseluisq added a commit to static-web-server/static-web-server that referenced this pull request Apr 21, 2024
due to builds issues as reported on rust-lang/jobserver-rs#87
this workaround can be removed once rust-lang/jobserver-rs#88 is released
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.

None yet

5 participants