Jeremy Drake 4719ffad87 python-cffi: use gcc-style barrier on Windows.
The existing logic excluded this on i386, x86_64, and WIN32, presumably
because they assumed WIN32 was i386 or x86_64.  This patch enables
gcc-style __sync_synchronize(), if it compiles, on WIN32 if not i386 or
x86_64.
2021-04-12 16:47:06 -07:00

12 lines
422 B
Diff

--- cffi-v1.14.4/setup.py.orig 2021-01-22 18:37:13.453727900 -0800
+++ cffi-v1.14.4/setup.py 2021-01-22 18:38:01.125798300 -0800
@@ -90,7 +89,7 @@
_safe_to_ignore()
def ask_supports_sync_synchronize():
- if sys.platform == 'win32' or no_compiler_found:
+ if no_compiler_found:
return
config = get_config()
ok = config.try_link('int main(void) { __sync_synchronize(); return 0; }')