We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent accf8fa commit 2131647Copy full SHA for 2131647
build-common.rs
@@ -5,8 +5,8 @@
5
// so that mapping to rust standard targets happens correctly.
6
fn convert_custom_linux_target(target: String) -> String {
7
let mut parts: Vec<&str> = target.split('-').collect();
8
- let system = parts[2];
9
- if system == "linux" {
+ let system = parts.get(2);
+ if system == Some(&"linux") {
10
parts[1] = "unknown";
11
};
12
parts.join("-")
0 commit comments