No other OSes use a target-<os> feature, and no tests (rightfully) depend on it. (This depends on D68449 to land before.)
This is an alternative to D68135. (The diff is made on top of it for practical reasons.)
Ping @rnk - we should either go with this, or D68135.
lgtm