Sha256: 502cb7494549bed6fa10ac7bea36e880eeb60290dc69b679ac5c92b376469562
Contents?: true
Size: 482 Bytes
Versions: 56
Compression:
Stored size: 482 Bytes
Contents
// The target triplets have the form of 'arch-vendor-system'. // // When building for Linux (e.g. the 'system' part is // 'linux-something'), replace the vendor with 'unknown' // so that mapping to rust standard targets happens correctly. fn convert_custom_linux_target(target: String) -> String { let mut parts: Vec<&str> = target.split('-').collect(); let system = parts.get(2); if system == Some(&"linux") { parts[1] = "unknown"; }; parts.join("-") }
Version data entries
56 entries across 37 versions & 1 rubygems