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

Support HTTP/2 on static curl-sys on MacOS. #237

Merged
merged 1 commit into from Nov 5, 2018

Conversation

ehuss
Copy link
Collaborator

@ehuss ehuss commented Nov 5, 2018

Ever since rust started using static builds (rust-lang/rust#54919), HTTP/2 hasn't been working on MacOS. The static feature is using the darwinssl backend, which looks like it needs a define to enable some conditional logic to enable ALPN to detect if HTTP/2 is available.

I have no idea if this is safe/wise, but in limited testing on my 10.14 system it seems to work. IIUC, rustc builds on 10.13, so I think these should still apply there. I think __builtin_available was introduced in Xcode 9, but I'm not sure.

@alexcrichton alexcrichton merged commit c302dcb into alexcrichton:master Nov 5, 2018
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

2 participants