Correctly determine OS to xfail in cross build
auto merge of #8950 : sanxiyn/rust/cross-xfail, r=brson