Auto merge of #4950 - alexcrichton:rustflags-orderd, r=matklad
authorbors <bors@rust-lang.org>
Wed, 17 Jan 2018 16:22:07 +0000 (16:22 +0000)
committerbors <bors@rust-lang.org>
Wed, 17 Jan 2018 16:22:07 +0000 (16:22 +0000)
Ensure `[target]` rustflags are deterministically passed

The usage of `HashMap` in the `Config` tables introduced some nondeterminism, so
reverse that with a sort right before we pass it down to rustc. One day we'll
probably want to sort by the position where these keys were defined, but for now
a blanket sort should do the trick.

Closes #4935


Trivial merge