Binary: Correct endian issue when cross-compiling
authoralexbiehl <alex.biehl@gmail.com>
Sun, 12 Feb 2017 00:25:27 +0000 (19:25 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 12 Feb 2017 00:58:35 +0000 (19:58 -0500)
commitd3ea38ef0299e9330a105fa59dda38f9ec0712c4
treef73560229845e8d7b0bf0a0e35c2b6459b8e01c2
parenta50082c115bed1891b2e5aac4a21462935f4f0d6
Binary: Correct endian issue when cross-compiling

Using `WORDS_BIGENDIAN` wasn't such a great idea after all!
When cross compiling host and target endianess may differ and
`WORDS_BIGENDIAN` refers to host endianess.

Reviewers: austin, bgamari, trofi

Reviewed By: bgamari, trofi

Subscribers: rwbarton, trofi, thomie

Differential Revision: https://phabricator.haskell.org/D3122
compiler/utils/Binary.hs