mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 11:12:45 +08:00
cmake: alter check for 64-bit atomic operation
Signed-off-by: Raymond Wong <infiwang@pm.me>
This commit is contained in:
parent
4b5b56452b
commit
1f393c627b
|
@ -255,10 +255,10 @@ int main () {
|
|||
check_cxx_source_compiles("
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
std::atomic<uint64_t> x (0);
|
||||
std::atomic<uint64_t> n64 (0);
|
||||
int main() {
|
||||
uint64_t i = x.load(std::memory_order_relaxed);
|
||||
return std::atomic_is_lock_free(&x);
|
||||
uint64_t i = n64.load(std::memory_order_relaxed);
|
||||
return std::atomic_is_lock_free(&n64);
|
||||
}"
|
||||
LIBATOMIC_NOT_NEEDED)
|
||||
IF (NOT LIBATOMIC_NOT_NEEDED)
|
||||
|
|
Loading…
Reference in New Issue
Block a user