mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 03:30:03 +00:00
Fix bugs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
c9c3cffb25
commit
3f7f293b78
1 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ pub async fn detect_targets() -> ArrayVec<Box<str>, 2> {
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
if v[0].contains("gnu") {
|
if v[0].contains("gnu") {
|
||||||
v.push(target.replace("gnu", "musl").into_boxed_str());
|
v.push(v[0].replace("gnu", "musl").into_boxed_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
@ -88,9 +88,9 @@ mod linux {
|
||||||
}) = Command::new("ldd").arg("--version").output().await
|
}) = Command::new("ldd").arg("--version").output().await
|
||||||
{
|
{
|
||||||
let libc_version =
|
let libc_version =
|
||||||
if let Some(libc_version) = parse_libc_version_from_ldd_output(stdout) {
|
if let Some(libc_version) = parse_libc_version_from_ldd_output(&stdout) {
|
||||||
libc_version
|
libc_version
|
||||||
} else if let Some(libc_version) = parse_libc_version(stderr) {
|
} else if let Some(libc_version) = parse_libc_version_from_ldd_output(&stderr) {
|
||||||
libc_version
|
libc_version
|
||||||
} else {
|
} else {
|
||||||
return from_array([create_target_str("musl", abi)]);
|
return from_array([create_target_str("musl", abi)]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue