[LLVMdev] Building with Microsoft Visual Studio

Richard Smith richard.smith at antixlabs.com
Thu Sep 20 12:53:09 PDT 2007


I am working on a port of LLVM targeting a proprietary VM. Thus far
development has been under Linux and Cygwin. Cygwin licensing would appear
to require that LLVM built under Cygwin would have to be released under the
GPL, so alternatives are being investigated.

Using MS Visual Studio and following the instructions at
http://llvm.org/docs/GettingStartedVS.html (Getting Started with the LLVM
System using Microsoft Visual Studio Overview) has not been successful.

>From the instructions:

With anonymous Subversion access: 
cd where-you-want-llvm-to-live 
svn co http://llvm.org/svn/llvm-project/llvm-top/trunk llvm-top 
make checkout MODULE=llvm 
cd llvm
...
Simply double click on the solution file llvm/win32/llvm.sln.

Questions:

1. "make" and "svn" are not Windows commands. In what environment are these
commands supposed to be used?
2. What is this "make checkout MODULE=llvm" about? After checking out the
sources the directory will be empty apart from the llvm-top subdirectory, so
where is the Makefile for this?
3. If you obtain the sources under Cygwin and build in Visual Studio,
absolutely nothing works: many files are missing. This is hardly surprising
because there has been no configure step.

Any suggestions greatly appreciated.

-- 
Regards,
Richard Smith.





More information about the llvm-dev mailing list