[cfe-dev] Errors compiling trunk on Windows

Óscar Fuentes ofv at wanadoo.es
Tue Mar 8 05:30:34 PST 2011


Nikola Smiljanic <popizdeh at gmail.com> writes:

> False alarm, build errors were my fault.
> But I think that documentation is wrong about project generation.
> Namely, it says that the commands should be:
>
> mkdir build
> cd build
> cmake -G "Visual Studio 10" ..\llvm
>
> but at this point llvm\build is the current directory and you can't
> reference llvm root dir using ..\llvm (cmake gives an error)
> the command should be cmake -G "Visual Studio 10" ..\

>From the instructions on that page, I think it is clear that ../llvm
means "path from the build directory to the LLVM source root".

For alternative instructions about building LLVM see

http://www.llvm.org/docs/CMake.html

For building Clang with the above method, you just need to put Clang
sources under LLVM_SOURCE_ROOT/tools directotry.



More information about the cfe-dev mailing list