diff options
| author | bors <bors@rust-lang.org> | 2020-12-21 01:16:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-21 01:16:20 +0000 |
| commit | c8135455c4a96b1d2570198619f38185c063579d (patch) | |
| tree | 6a54a67e8075966ea8a09f70fc71b7bf8d33ae07 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | c609b2eaf323186a1167ec1a9ffa69a7d4a5b1b9 (diff) | |
| parent | ec078155f140de8bd838596ac0d5d786d988d493 (diff) | |
| download | rust-c8135455c4a96b1d2570198619f38185c063579d.tar.gz rust-c8135455c4a96b1d2570198619f38185c063579d.zip | |
Auto merge of #80088 - operutka:fix-cmsg-len-uclibc, r=dtolnay
Fix failing build of std on armv5te-unknown-linux-uclibceabi due to missing cmsg_len_zero
I'm getting the following error when trying to build `std` on `armv5te-unknown-linux-uclibceabi`:
```
error[E0425]: cannot find value `cmsg_len_zero` in this scope
--> /home/operutka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/ext/net/ancillary.rs:376:47
|
376 | let data_len = (*cmsg).cmsg_len - cmsg_len_zero;
| ^^^^^^^^^^^^^ not found in this scope
```
Obviously, this branch:
```rust
cfg_if::cfg_if! {
if #[cfg(any(target_os = "android", all(target_os = "linux", target_env = "gnu")))] {
let cmsg_len_zero = libc::CMSG_LEN(0) as libc::size_t;
} else if #[cfg(any(
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
all(target_os = "linux", target_env = "musl",),
target_os = "netbsd",
target_os = "openbsd",
))] {
let cmsg_len_zero = libc::CMSG_LEN(0) as libc::socklen_t;
}
}
```
does not cover the case `all(target_os = "linux", target_env = "uclibc")`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
