Probably. The interesting part seems to be here https://github.com/mozilla/rust/blob/master/src/librustc/back/link.rs#L718 (and a few other calls to `get_system_tool`). I'll look into it.