Skip to content

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

Merged
alexcrichton merged 1 commit intoalexcrichton:masterfrom
ehuss:http2-macos
Nov 5, 2018
Merged

Support HTTP/2 on static curl-sys on MacOS.#237
alexcrichton merged 1 commit intoalexcrichton:masterfrom
ehuss:http2-macos

Conversation

@ehuss
Copy link
Copy Markdown
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.

2 participants