fix(sys): link to iphlpapi unconditionally#643
Conversation
Upstream has done that so we follow: 1. curl/curl#17413 preloads `iphlpapi` uncondiioned on `HAVE_IF_NAMETOINDEX` 2. curl/curl@b17ef873 `HAVE_IF_NAMETOINDEX` is defined unconditionally
|
cc @ehuss |
|
Do you know how to reproduce this? I'm curious why this didn't fail in any other CI builds. |
|
I thought it was something related to gc-section, but I was wrong. It passed 🥲 #644 |
|
cargo with all-static under release profile also failed to reproduce I am still trying to figure out anything special in rust-lang/rust CI |
|
weihanglo/cargo#89 is now failing when raw-dylib is in use. I still need to double check whether bootstrap builds Cargo with raw-dylib though |
|
If I understand correctly, raw-dylib is very likely the culprit.
|
ehuss
left a comment
There was a problem hiding this comment.
Ok, thanks! It's a little strange, but I think I gather this is due to behavior in the windows-sys and windows-link crates, and those crates no longer including everything with the windows_raw_dylib cfg.
See * alexcrichton/curl-rust#643 * rust-lang/rust#154482 (comment) This will unblock cargo submodule update in rust-lang/rust
### What does this PR try to resolve? See * alexcrichton/curl-rust#643 * rust-lang/rust#154482 (comment) This will unblock cargo submodule update in rust-lang/rust
Upstream has done that so we follow:
iphlpapiconditioned onHAVE_IF_NAMETOINDEXHAVE_IF_NAMETOINDEXis defined unconditionallySee rust-lang/rust#154482 which failed without and succeeded with link to
iphlpaidll.This also bumps curl-sys to 0.4.87 to help unblock rust-lang/rust#154482, (of course, if curl-rust maintainers can help release 🙏🏾)