Skip to content

Commit 2c37ebe

Browse files
hustcerclaude
andcommitted
fix: pin libc to 0.2.178 to fix loongarch64-musl build failure
libc >= 0.2.179 enables `musl_v1_2_3` for loongarch64 which changes `struct stat` fields from `st_atime`/`st_mtime`/`st_ctime` to `st_atim`/`st_mtim`/`st_ctim`. This breaks rustix 0.38.42 on loongarch64-unknown-linux-musl target. Reference: rust-lang/libc#4939 Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent cee9083 commit 2c37ebe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ is_executable = "1.0"
112112
itertools = "0.14"
113113
lean_string = { version = "0.5", features = ["serde"] }
114114
lexopt = "0.3.1"
115-
libc = "0.2"
115+
libc = "=0.2.178" # Pinned to avoid loongarch64 build failure with libc >= 0.2.179 (rust-lang/libc#4939)
116116
libproc = "0.14"
117117
log = "0.4"
118118
lru = "0.16"

0 commit comments

Comments
 (0)