blake2: silence two more warnings on platforms with size_t < uint64_t. Don't use SSE2 when cross-compiling

This commit is contained in:
Christian Heimes 2016-09-07 11:39:21 +02:00
parent 680cb152c5
commit dfb9ef1357
3 changed files with 5 additions and 5 deletions

View file

@ -894,7 +894,7 @@ class PyBuildExt(build_ext):
blake2_deps.append('hashlib.h')
blake2_macros = []
if os.uname().machine == "x86_64":
if not cross_compiling and os.uname().machine == "x86_64":
# Every x86_64 machine has at least SSE2.
blake2_macros.append(('BLAKE2_USE_SSE', '1'))