User:Ehsan/How to build-clang

From MozillaWiki
< User:Ehsan
Revision as of 13:45, 30 September 2015 by Ehsan (talk | contribs)
Jump to navigation Jump to search

This explains how to build clang on a pristine desktop-build image:

mkdir -p /home/worker/workspace/build
cd /home/worker/workspace/build
git clone https://github.com/mozilla/gecko-dev.git src
git clone https://github.com/mozilla/build-tooltool.git
cd src
../build-tooltool/tooltool.py -m browser/config/tooltool-manifests/linux64/releng.manifest fetch
cd build/unix/build-clang
vi build-clang.py # Change the centOS6 global variable to true
./build-clang.py -c clang-trunk.json

After the refactorings, the following new tools are needed:

git clone git://github.com/martine/ninja.git && cd ninja
git checkout release
./configure.py --bootstrap
cp ninja /usr/local/bin/ninja
cp ninja /usr/local/bin/ninja-build