Skip to content

Commit

Permalink
remove endianness macro, fixes #6105
Browse files Browse the repository at this point in the history
thanks to everybody who helped with this, esp. @th0ma7 and @methane.
  • Loading branch information
ThomasWaldmann committed Jan 22, 2022
1 parent 9abd749 commit 744d82b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,11 @@ def run(self):
system_prefix=libxxhash_prefix, system=libxxhash_system,
**crypto_ext_kwargs)

msgpack_endian = '__BIG_ENDIAN__' if (sys.byteorder == 'big') else '__LITTLE_ENDIAN__'
msgpack_macros = [(msgpack_endian, '1')]
msgpack_macros = [] # setup.py of msgpack 0.5.6 defines __LITTLE_ENDIAN__ / __BIG_ENDIAN__ - which
# leads to troubles when trying cross-platform builds, see borg issue #6105.
# in current msgpack, this was fixed to ONLY define __LITTLE_ENDIAN__ ON WIN32.
# as borg 1.1.x does not support native win32 anyway, we do not have that here.

msgpack_packer_ext_kwargs = dict(
sources=[msgpack_packer_source],
include_dirs=include_dirs,
Expand Down

0 comments on commit 744d82b

Please sign in to comment.