vcpkg/ports/cairo/disable-atomic-ops-check.patch
Jack·Boos·Yu bfba976514
[vcpkg baseline][cairo] Add option atomic-ops and disable it (#23999)
* [vcpkg baseline][cairo] Add option atomic-ops and disable it

* version

* Apply suggestion

* version
2022-04-07 07:45:25 -07:00

14 lines
556 B
Diff

diff --git a/meson.build b/meson.build
index e3ec5d9..7b20c0c 100644
--- a/meson.build
+++ b/meson.build
@@ -870,7 +870,7 @@ if cc.links(files('meson-cc-tests/atomic-ops-cxx11.c'), name: 'Atomic ops: cxx11
conf.set('HAVE_CXX11_ATOMIC_PRIMITIVES', 1)
elif cc.links(files('meson-cc-tests/atomic-ops-gcc-legacy.c'), name: 'Atomic ops: gcc legacy')
conf.set('HAVE_GCC_LEGACY_ATOMICS', 1)
-elif cc.has_header('atomic_ops.h')
+elif false
conf.set('HAVE_LIB_ATOMIC_OPS', 1)
elif cc.has_header('libkern/OSAtomic.h')
conf.set('HAVE_OS_ATOMIC_OPS', 1)