Fixes build failures on at least ppc and sparc. Patch should be in
18.2.5 and 18.3.0.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
--- /dev/null
+diff --git a/meson.build b/meson.build
+index 690e7d3d8aa..fb08e905ebd 100644
+--- a/meson.build
++++ b/meson.build
+@@ -906,7 +906,7 @@ if not cc.links('''#include <stdint.h>
+ return __sync_add_and_fetch(&v, (uint64_t)1);
+ }''',
+ name : 'GCC 64bit atomics')
+- pre_args += '-DMISSING_64_BIT_ATOMICS'
++ pre_args += '-DMISSING_64BIT_ATOMICS'
+ endif
+
+ # TODO: shared/static? Is this even worth doing?
PATCHES=(
"${FILESDIR}"/${P}-meson-link-gallium-nine-with-pthreads.patch
+ "${FILESDIR}"/${P}-meson-fix-libatomic-tests.patch
)
llvm_check_deps() {