This section describes how to aquire and build llvm-gcc4, which is based on the GCC 4.0.1 front-end. This front-end supports C, C++, Objective-C, and Objective-C++. Note that the instructions for building this front-end are completely different (and much easier!) than those for building llvm-gcc3 in the past.
Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the llvm web site.
It is also possible to download the sources of the llvm-gcc4 front end from a read-only mirror using subversion. To check out the code the first time use:
svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk dst-directory
After that, the code can be be updated in the destination directory using:
The mirror is brought up to date every evening.
The LLVM GCC frontend is licensed to you under the GNU General Public License and the GNU Lesser General Public License. Please see the files COPYING and COPYING.LIB for more details.
More information is available in the FAQ.