Update std atomic check and simd compatibility check for arc compiler (#3716)

This commit is contained in:
TianlongLiang
2024-08-16 10:12:23 +08:00
committed by GitHub
parent b845e2ede4
commit 63df2cf02d
3 changed files with 8 additions and 3 deletions

View File

@ -104,8 +104,9 @@ os_thread_exit(void *retval);
#endif
/* Clang's __GNUC_PREREQ macro has a different meaning than GCC one,
so we have to handle this case specially */
#if defined(__clang__)
so we have to handle this case specially(except the CCAC compiler
provided by MetaWare, which doesn't support atomic operations) */
#if defined(__clang__) && !defined(__CCAC__)
/* Clang provides stdatomic.h since 3.6.0
See https://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html */
#if __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 6)