meson: fix libatomic tests
authorDylan Baker <dylan@pnwbakers.com>
Fri, 9 Nov 2018 20:56:00 +0000 (12:56 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 12 Nov 2018 21:29:00 +0000 (13:29 -0800)
There are two problems:
1) the extra underscore in MISSING_64BIT_ATOMICS
2) we should link with libatomic if the previous test decided we needed
   it

Fixes: d1992255bb29054fa51763376d125183a9f602f3
       ("meson: Add build Intel "anv" vulkan driver")
Reviewed-and-Tested-by: Matt Turner <mattst88@gmail.com>
meson.build

index dabfb9abddda7ef4b4bbb550a518653eaa2ff7a0..58ff3ea9735f28e63a372285c82611f499621e3f 100644 (file)
@@ -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?