mozilla

Compare Revisions

Compiling Firefox With Clang On Linux

Change Revisions

Revision 448571:

Revision 448571 by kscarfone on

Revision 491793:

Revision 491793 by Hsivonen on

Title:
Compiling Firefox With Clang On Linux
Compiling Firefox With Clang On Linux
Slug:
Compiling_Firefox_With_Clang_On_Linux
Compiling_Firefox_With_Clang_On_Linux
Tags:
"Developing Mozilla", "Firefox", "Build documentation", "Guide"
Developing Mozilla, Firefox, Guide, Build documentation,
Content:

Revision 448571
Revision 491793
n13    <h2 id="Advantage_of_using_clang">n13    <h2 id="Advantages_of_using_clang">
n29      The following steps work on Mac and Linux only. Note that tn29      The following steps work on Mac and Linux only. Note that t
>he clang port is not ready for everyday use yet, so I&nbsp;won’t >he clang port is not ready for everyday use yet, so I&nbsp;won’t 
>recommend you switching to clang if you’re on Windows.>recommend you switching to clang if you’re on Windows. As of Nove
 >mber 2013, the trunk of clang is unsuited for building Firefox. T
 >he <a href="http://llvm.org/releases/download.html#3.3">3.3 relea
 >se</a> works. (The release page has links to GPG signatures for t
 >he files downloaded in the guide below.)
n34svn co http://llvm.org/svn/llvm-project/llvm/trunk llvmn34wget http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz
35tar zxvf llvm-3.3.src.tar.gz
36mv llvm-3.3.src llvm
n36svn co http://llvm.org/svn/llvm-project/cfe/trunk clangn38wget http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz
39tar zxvf cfe-3.3.src.tar.gz
40mv cfe-3.3.src clang
t41make &amp;&amp; sudo make installt45make
46</pre>
47    <p>
48      Finally, you need to either run
49    </p>
50    <pre lang="bash">
51 sudo make install
52</pre>
53    <p>
54      or on Linux, you probably want to create a removable packag
 >e instead:
55    </p>
56    <pre lang="bash">
57 sudo checkinstall --pkgname clang --pkgversion 3.3 --nodoc -y

Back to History