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)
commit7d75776fdb0f5436109e6f5fe76f3fb9b8f5a7e4
treedda6a25621e78e7bcedfa8949d24ef779c241cbb
parentc7ce876d15d171c7d7444fe098f72768a20de6c1
parentc9803a44f4ae64c3e1fc4dfa3401d19eca91e233
Auto merge of #4950 - alexcrichton:rustflags-orderd, r=matklad

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