Issue |
123880
|
Summary |
Build libcxx with winpthreads+
|
Labels |
|
Assignees |
|
Reporter |
void2012
|
Hi! I want to build my custom build of libc++ using the command line with clang-cl:
`cmake -G "Visual Studio 17 2022" -S runtimes -B build ^
-T "LLVM_v141_xp" ^
-DLLVM_ENABLE_RUNTIMES=libcxx ^
-DLIBCXX_ENABLE_SHARED=YES ^
-DLIBCXX_ENABLE_STATIC=YES ^
-DLIBCXX_ENABLE_FILESYSTEM=NO ^
-DLIBCXX_INCLUDE_TESTS=NO ^
-DLIBCXX_HAS_PTHREAD_API=YES ^
-DCMAKE_CXX_FLAGS="/D_WIN32_WINNT=0x0501 /DWINVER=0x0501" ^
-DCMAKE_GENERATOR_PLATFORM=Win32`
However, during the build the compiler can't find `pthread.h` and `sched.h`, which is not surprising. But how do I specify the path for the winpthreads library to depend on? Thanks!
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs