crate2nix icon indicating copy to clipboard operation
crate2nix copied to clipboard

Don't hard-code a target family of Unix

Open Ericson2314 opened this issue 1 year ago • 1 comments

Rust target specs actually support multiple target families, where just one needs to match, so we do too.

Reverse the order of the comparison so it is more consistent: wanted before the target's single value or list.

Ericson2314 avatar Aug 26 '22 00:08 Ericson2314

The new logic should be backported into a toTargetFamilies next to the others in the "rust lib". Then this is ready to be merged.

Ericson2314 avatar Aug 26 '22 01:08 Ericson2314

(The tests passed locally)

Ericson2314 avatar Nov 09 '22 21:11 Ericson2314