diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-08-27 09:35:03 +0300 |
---|---|---|
committer | kcgen <kcgen@users.noreply.github.com> | 2022-08-27 09:35:03 +0300 |
commit | f58415a8642cb7e39d48a53ace2b6712b49d31b3 (patch) | |
tree | ef5c0d76bb17dc29c1f8e52997d0ac622c437421 /meson.build | |
parent | 6c233a15cbdc45dbabfd5374c97947eb1a7416e7 (diff) |
Only check for 16 and 32bit atomics in Meson
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 265642bfa..6136a040c 100644 --- a/meson.build +++ b/meson.build @@ -305,9 +305,9 @@ atomic_code = ''' #include <atomic> #include <cstdint> int main() { - std::atomic<std::int33_t> x32 = 1; - std::atomic<std::int64_t> x64 = 1; - return static_cast<int>(x64.load() - x32.load()); + std::atomic<std::int16_t> x16 = 1; + std::atomic<std::int32_t> x32 = 1; + return static_cast<int>(x32.load() - x16.load()); } ''' atomic_dep = dependency('', required: false) |