Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/tsan/dd/CMakeLists.txt | ||
---|---|---|
27 | There are a couple of examples of optionally adding -ldl without relying on the system name, in other llvm projects: lib/Support/CMakeLists.txt: if( HAVE_LIBDL ) set(system_libs ${system_libs} ${CMAKE_DL_LIBS}) projects/libcxxabi/src/Unwind/CMakeLists.txt: append_if(libraries LIBCXXABI_HAS_DL_LIB dl) |
lib/tsan/dd/CMakeLists.txt | ||
---|---|---|
27 | Yeah, you should use append_if(COMPILER_RT_HAS_LIBDL dl DD_LINKLIBS) we already have COMPILER_RT_HAS_LIBDL defined. Also, while you're here, use COMPILER_RT_HAS_LIBPTHREAD for pthread as well. |
There are a couple of examples of optionally adding -ldl without relying on the system name, in other llvm projects:
lib/Support/CMakeLists.txt:
projects/libcxxabi/src/Unwind/CMakeLists.txt: