Skip to content

Commit

Permalink
Update configure.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPetryka committed Jan 26, 2024
1 parent fa1d819 commit c3cf1c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/pal/src/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ check_cxx_symbol_exists(_DEBUG sys/user.h USER_H_DEFINES_DEBUG)
check_cxx_symbol_exists(_SC_PHYS_PAGES unistd.h HAVE__SC_PHYS_PAGES)
check_cxx_symbol_exists(_SC_AVPHYS_PAGES unistd.h HAVE__SC_AVPHYS_PAGES)

check_cxx_source_runs("
check_c_source_compiles("
//#if defined(__clang__) || defined(_MSC_VER)
//int main(void) {
// exit(0);
// return 0;
//}
//#else
#include <stdatomic.h>
Expand All @@ -201,7 +201,7 @@ int main(void) {
#if ATOMIC_CHAR_LOCK_FREE == 2 && ATOMIC_SHORT_LOCK_FREE == 2 && ATOMIC_INT_LOCK_FREE == 2 && ATOMIC_LLONG_LOCK_FREE == 2
return 0;
#else
return 1;
#error CoreCLR requires non-locking atomics
#endif
}
//#endif" HAVE_LOCKFREE_ATOMICS)
Expand Down

0 comments on commit c3cf1c4

Please sign in to comment.