We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b7f59 commit 9296fd6Copy full SHA for 9296fd6
1 file changed
runtime/CMakeLists.txt
@@ -141,6 +141,10 @@ if("${C_SYSTEM_LIBS}" STREQUAL "AUTO")
141
else()
142
set(C_SYSTEM_LIBS m pthread)
143
endif()
144
+ # some archs need libatomic for 128-bit CAS druntime unittests
145
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64|loongarch64")
146
+ set(C_SYSTEM_LIBS atomic ${C_SYSTEM_LIBS})
147
+ endif()
148
set(C_SYSTEM_LIBS_SHARED ${C_SYSTEM_LIBS})
149
150
0 commit comments