Skip to content

Commit

Permalink
Fix atomic builtins test that currently fails for llvm+compiler_rt wh…
Browse files Browse the repository at this point in the history
…en gcc is not present (netdata#18788)

Fix atomic builtins test that currently fails for llvm+compiler_rt only systems (no gcc) where atomic are builtin but __atomic_load_8 is not implemented

Signed-off-by: David C. Manuelda <[email protected]>
  • Loading branch information
StormBytePP authored Oct 16, 2024
1 parent f6a4eb1 commit 10720be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ int main() {

check_cxx_source_compiles("
int main() {
__atomic_load_8(nullptr, 0);
int test;
__atomic_load_n(&test, 0);
return 0;
}
" HAVE_BUILTIN_ATOMICS)
Expand Down

0 comments on commit 10720be

Please sign in to comment.