Skip to content

Commit

Permalink
Auto merge of #12098 - loongarch-rs:bump-libc, r=weihanglo
Browse files Browse the repository at this point in the history
Update libc to 0.2.144

### What does this PR try to resolve?

cargo cannot build successfully on LoongArch:

```
error[E0425]: cannot find value `FICLONE` in module `c`
   --> /home/hev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.37.15/src/backend/libc/io/syscalls.rs:356:16
    |
356 |             c::FICLONE as _,
    |                ^^^^^^^ not found in `c`
```

This is caused by some constants are missing in libc and [fixed](rust-lang/libc#3237) after `libc 0.2.143` release.

libc changelog: https://github.com/rust-lang/libc/releases/tag/0.2.143

### How should we test and review this PR?

```bash
cargo build && cargo test
```

### Additional information

None
  • Loading branch information
bors committed May 10, 2023
2 parents 26b73d1 + 526f5ae commit a5460e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -50,7 +50,7 @@ itertools = "0.10.0"
jobserver = "0.1.26"
lazy_static = "1.3.0"
lazycell = "1.2.0"
libc = "0.2.88"
libc = "0.2.144"
libgit2-sys = "0.15.1"
log = "0.4.17"
memchr = "2.1.3"
Expand Down

0 comments on commit a5460e5

Please sign in to comment.