Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r96204:28ca4c3a2982
Date: 2019-03-03 13:00 +0200
http://bitbucket.org/pypy/pypy/changeset/28ca4c3a2982/

Log:    fix 323ddcb8a8c4 for win32 which needs to define the macro, sse2 is
        always supported

diff --git a/lib_pypy/_blake2/_blake2_build.py 
b/lib_pypy/_blake2/_blake2_build.py
--- a/lib_pypy/_blake2/_blake2_build.py
+++ b/lib_pypy/_blake2/_blake2_build.py
@@ -8,11 +8,14 @@
 IS_WIN = sys.platform == 'win32'
 if IS_ARM:
     # XXX Choose neon accelaration
+    define_macros = []
     extra_compile_args = []
 elif IS_WIN:
-    extra_compile_args = ['/arch:SSE2']
+    extra_compile_args = []
+    define_macros = [('__SSE2__', '1')]
 else:
     extra_compile_args = ['-msse2']
+    define_macros = []
     
     
 
@@ -86,6 +89,7 @@
             ],
     include_dirs=[_libdir],
     extra_compile_args=extra_compile_args,
+    define_macros=define_macros,
 )
 
 def _replace_b2s(src):
@@ -102,6 +106,7 @@
             ],
     include_dirs=[_libdir],
     extra_compile_args=extra_compile_args,
+    define_macros=define_macros,
 )
 
 if __name__ == '__main__':
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to