|
@ -1473,6 +1473,7 @@ impl Build { |
|
|
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-')); |
|
|
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-')); |
|
|
let prefix = cross_compile.or(match &target[..] { |
|
|
let prefix = cross_compile.or(match &target[..] { |
|
|
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"), |
|
|
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"), |
|
|
|
|
|
"aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"), |
|
|
"arm-unknown-linux-gnueabi" => Some("arm-linux-gnueabi"), |
|
|
"arm-unknown-linux-gnueabi" => Some("arm-linux-gnueabi"), |
|
|
"arm-frc-linux-gnueabi" => Some("arm-frc-linux-gnueabi"), |
|
|
"arm-frc-linux-gnueabi" => Some("arm-frc-linux-gnueabi"), |
|
|
"arm-unknown-linux-gnueabihf" => Some("arm-linux-gnueabihf"), |
|
|
"arm-unknown-linux-gnueabihf" => Some("arm-linux-gnueabihf"), |
|
@ -1597,6 +1598,8 @@ impl Build { |
|
|
Ok(Some("c++".to_string())) |
|
|
Ok(Some("c++".to_string())) |
|
|
} else if target.contains("freebsd") { |
|
|
} else if target.contains("freebsd") { |
|
|
Ok(Some("c++".to_string())) |
|
|
Ok(Some("c++".to_string())) |
|
|
|
|
|
} else if target.contains("openbsd") { |
|
|
|
|
|
Ok(Some("c++".to_string())) |
|
|
} else { |
|
|
} else { |
|
|
Ok(Some("stdc++".to_string())) |
|
|
Ok(Some("stdc++".to_string())) |
|
|
} |
|
|
} |
|
|