Bug 1893155 - Part 6: Correct constant for minimum epoch day. r=spidermonkey-reviewer...
[gecko.git] / third_party / rust / crossbeam-epoch / build-common.rs
blobe91bb4d4714a70e0ee5dd13854c4926d2cb8f7a3
1 // The target triplets have the form of 'arch-vendor-system'.
2 //
3 // When building for Linux (e.g. the 'system' part is
4 // 'linux-something'), replace the vendor with 'unknown'
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.get(2);
9     if system == Some(&"linux") {
10         parts[1] = "unknown";
11     };
12     parts.join("-")