diff options
author | Dylan Baker <[email protected]> | 2018-11-09 12:56:00 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-11-12 13:29:00 -0800 |
commit | 4eab98b66e7dc495f26ac3b0e356e405c0796b74 (patch) | |
tree | 1405907d612a96fd90c0e4d61fde5fc6b030dab8 | |
parent | 32a334777ce2acd2cebfc834853b768eab469e51 (diff) |
meson: fix libatomic tests
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 <[email protected]>
-rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index dabfb9abddd..58ff3ea9735 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? |