Commit b29b5a82 authored by Matt Turner's avatar Matt Turner
Browse files

meson: Fix -latomic check

Commit 54ba73ef ( Fix -latomic test) fixed
some checks for -latomic, and then commit 54bbe600 (
rework -latomic check) further extended the fixes in but
not in Meson. This commit extends those fixes to the Meson tests.

Fixes: 54bbe600

 ( rework -latomic check)
Reviewed-by: default avatarEric Engestrom <>
Reviewed-by: default avatarDylan Baker <>
parent 9cc57776
......@@ -830,7 +830,13 @@ endif
# Check for GCC style atomics
dep_atomic = null_dep
if cc.compiles('int main() { int n; return __atomic_load_n(&n, __ATOMIC_ACQUIRE); }',
if cc.compiles('''#include <stdint.h>
int main() {
struct {
uint64_t *v;
} x;
return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE);
name : 'GCC atomic builtins')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment