Fix atomic builtins test that currently fails for llvm+compiler_rt when gcc is not present (#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 <StormByte@gmail.com>
StormBytePP committed
Oct 16, 2024 at 17:30 UTC
10720bea493e9665c1e7548198909c9b6e7119b3
1 file changed
+2
-1
CMakeLists.txt
+2
-1
@@ -448,7 +448,8 @@ int main() {
448
449
check_cxx_source_compiles("
450
int main() {
451
- __atomic_load_8(nullptr, 0);
451
+ int test;
452
+ __atomic_load_n(&test, 0);
453
return 0;
454
}
455
" HAVE_BUILTIN_ATOMICS)