Today, I have tried the method listed in http://clang.llvm.org/get_started.html
to build a clang.exe, but no luck, all failed
1, one failed method.
under Msys mingw, check out the llvm and clang svn code, and configure. make. but the error occurred when I run the make, such as:
Makefile:130: /Makefile.rules: No such file or directory
make: *** No rule to make target `/Makefile.rules'. Stop.
2. failed method two:
I just use the cmake, then generate the makefile for mingw, then just run the make command.
when at build stage 97%, I get these message:
Linking CXX executable ..\..\..\..\bin\c-index-test.exe
defined reference to `_imp__pthread_create'
defined reference to `_imp__pthread_join'
collect2: ld returned 1 exit status
make: *** [bin/c-index-test.exe] Error 1
make: *** [tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/all] Er
make: *** [all] Error 2
I have struggleed with the pthread for several hour,( copy some libs or shared libs...), and finally I still get stuck. I hope some brave guy can help to build a clang distribution (windows). thanks.
currently, I can't find any clang binaries for windows.