Fix srcdir <> objdir builds with ocaml 2.10. Downrev versions don't care whether
[oota-llvm.git] / docs / CFEBuildInstrs.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2                       "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6   <link rel="stylesheet" href="llvm.css" type="text/css" media="screen">
7   <title>Building the LLVM C/C++ Front-End</title>
8 </head>
9 <body>
10
11 <div class="doc_title">
12   Building the LLVM C/C++ Front-End
13 </div>
14
15 <ol>
16   <li><a href="#instructions">Building llvm-gcc 4 from Source</a></li>
17   <li><a href="#license">License Information</a></li>
18 </ol>
19
20 <div class="doc_author">    
21   <p>Written by the LLVM Team</p>
22 </div>
23
24 <!-- *********************************************************************** -->
25 <div class="doc_section">
26   <a name="instructions">Building llvm-gcc 4 from Source</a>
27 </div>
28 <!-- *********************************************************************** -->
29
30 <div class="doc_text">
31
32 <p>This section describes how to aquire and build llvm-gcc4, which is based on
33 the GCC 4.0.1 front-end.  This front-end supports C, C++, Objective-C, and
34 Objective-C++.  Note that the instructions for building this front-end are
35 completely different (and much easier!) than those for building llvm-gcc3 in
36 the past.</p>
37
38 <ol>
39   <li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the
40          <a href="http://llvm.org/releases/">llvm web site</a>.</p>
41
42       <p>It is also possible to download the sources of the llvm-gcc4 front end
43          from a read-only mirror using subversion.  To check out the code the
44          first time use:</p>
45
46 <div class="doc_code">
47 <pre>
48 svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk <i>dst-directory</i>
49 </pre>
50 </div>
51
52       <p>After that, the code can be be updated in the destination directory
53          using:</p>
54
55 <div class="doc_code">
56 <pre>svn update</pre>
57 </div>
58
59       <p>The mirror is brought up to date every evening.</p></li>
60
61   <li>Follow the directions in the top-level <tt>README.LLVM</tt> file for
62       up-to-date instructions on how to build llvm-gcc4.</li>
63 </ol>
64
65 </div>
66 <!-- *********************************************************************** -->
67 <div class="doc_section">
68   <a name="license">License Information</a>
69 </div>
70
71 <div class="doc_text">
72 <p>
73 The LLVM GCC frontend is licensed to you under the GNU General Public License
74 and the GNU Lesser General Public License.  Please see the files COPYING and
75 COPYING.LIB for more details.
76 </p>
77
78 <p>
79 More information is <a href="FAQ.html#license">available in the FAQ</a>.
80 </p>
81 </div>
82
83 <!-- *********************************************************************** -->
84
85 <hr>
86 <address>
87   <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
88   src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
89   <a href="http://validator.w3.org/check/referer"><img
90   src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
91
92   <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
93   Last modified: $Date$
94 </address>
95
96 </body>
97 </html>