Skip to content

Commit 0f8834d

Browse files
authored
Fix musl compilation: Add musl as a prefix fallback (#1455)
Fixed #1452
1 parent 5f55b01 commit 0f8834d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,9 @@ impl Build {
35103510
"x86_64-unknown-linux-gnu" => self.find_working_gnu_prefix(&[
35113511
"x86_64-linux-gnu", // rustfmt wrap
35123512
]), // explicit None if not found, so caller knows to fall back
3513-
"x86_64-unknown-linux-musl" => Some("x86_64-linux-musl"),
3513+
"x86_64-unknown-linux-musl" => {
3514+
self.find_working_gnu_prefix(&["x86_64-linux-musl", "musl"])
3515+
}
35143516
"x86_64-unknown-netbsd" => Some("x86_64--netbsd"),
35153517
_ => None,
35163518
}

0 commit comments

Comments
 (0)