Confirmed users
3,104
edits
(→Intro) |
|||
| Line 6: | Line 6: | ||
Clang build is made by http://hg.mozilla.org/mozilla-central/file/tip/build/unix/build-clang/build-clang.py script. You may want to use this script to discover the recent used version of clang. | Clang build is made by http://hg.mozilla.org/mozilla-central/file/tip/build/unix/build-clang/build-clang.py script. You may want to use this script to discover the recent used version of clang. | ||
= Compilation = | |||
MacOS X builders have everything installed to build clang. | |||
Linux64 (Centos 6.2) needs the following packages installed: | |||
yum install make gcc gcc-c++ mercurial subversion patch \ | |||
http://puppetagain.pub.build.mozilla.org/data/repos/yum/releng/public/CentOS/6/x86_64/gcc472_0moz1-4.7.2-0moz1.x86_64.rpm \ | |||
http://puppetagain.pub.build.mozilla.org/data/repos/yum/releng/public/CentOS/6/x86_64/mozilla-python27-2.7.3-0.el6.x86_64.rpm | |||
Linux32 (Centos 6.2) needs the following packages installed: | |||
yum install make gcc gcc-c++ mercurial subversion patch \ | |||
http://puppetagain.pub.build.mozilla.org/data/repos/yum/releng/public/CentOS/6/i386/gcc472_0moz1-4.7.2-0moz1.i686.rpm \ | |||
http://puppetagain.pub.build.mozilla.org/data/repos/yum/releng/public/CentOS/6/i386/mozilla-python27-2.7.3-0.el6.src.rpm | |||
To build clang clone mozilla-central and run the build script: | |||
hg clone https://hg.mozilla.org/mozilla-central | |||
cd mozilla-central/build/unix/build-clang | |||
# adjust revision in build-clang.py if needed | |||
time /tools/python27/bin/python2.7 build-clang.py # go and drink something | |||
Once the build is finished you can find 2 not tracked files (hg st) in the current directory. <tt>clang.manifest</tt> should be attached to the bug and $SHA512 should be uploaded to the tooltool server (see below). | |||
= How to add a new version = | = How to add a new version = | ||