[Mesa-dev] [PATCH] meson: fix libatomic tests

Dylan Baker dylan at pnwbakers.com
Fri Nov 9 21:03:47 UTC 2018


There are two problems:
1) the extra underscore in MISSING_64BIT_ATOMICS
2) we should ink with libatomic if the previous test decided we needed
   it

CC: Matt Turner <mattst88 at gmail.com>
Fixes: d1992255bb29054fa51763376d125183a9f602f3
       ("meson: Add build Intel "anv" vulkan driver")
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 18667988bac..4e6107b857f 100644
--- a/meson.build
+++ b/meson.build
@@ -905,8 +905,9 @@ if not cc.links('''#include <stdint.h>
                    int main() {
                      return __sync_add_and_fetch(&v, (uint64_t)1);
                    }''',
+                dependencies : dep_atomic,
                 name : 'GCC 64bit atomics')
-  pre_args += '-DMISSING_64_BIT_ATOMICS'
+  pre_args += '-DMISSING_64BIT_ATOMICS'
 endif
 
 # TODO: shared/static? Is this even worth doing?
-- 
2.19.1



More information about the mesa-dev mailing list