User:Ehsan/How to build-clang: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
<pre> | <pre> | ||
{ | { | ||
"created": "2015-10- | "created": "2015-10-14T12:48:35.823Z", | ||
"deadline": "2015-10- | "deadline": "2015-10-15T13:48:35.823Z", | ||
"provisionerId": "aws-provisioner-v1", | "provisionerId": "aws-provisioner-v1", | ||
"workerType": "opt-linux64", | "workerType": "opt-linux64", | ||
Line 47: | Line 47: | ||
], | ], | ||
"env": { | "env": { | ||
"GECKO_HEAD_REV": " | "GECKO_HEAD_REV": "3cb54681feb4", | ||
"GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/try" | "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/try" | ||
} | } | ||
Line 65: | Line 65: | ||
} | } | ||
} | } | ||
} | }</pre> | ||
</pre> |
Revision as of 12:49, 14 October 2015
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
The builds can run on TaskCluster using a payload like this:
{ "created": "2015-10-14T12:48:35.823Z", "deadline": "2015-10-15T13:48:35.823Z", "provisionerId": "aws-provisioner-v1", "workerType": "opt-linux64", "retries": 5, "expires": "2016-10-12T02:17:01.554Z", "payload": { "maxRunTime": 36000, "image": "taskcluster/desktop-build:0.1.11", "artifacts": { "clang.tar.xz": { "path": "/home/worker/artifacts/", "expires": "2016-10-12T02:17:01.554913Z", "type": "file" } }, "command": [ "/bin/bash", "-c", "cd /home/worker/ && ./bin/checkout-sources.sh && ./workspace/build/src/testing/taskcluster/scripts/misc/build-clang-linux.sh" ], "env": { "GECKO_HEAD_REV": "3cb54681feb4", "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/try" } }, "metadata": { "owner": "ehsan@mozilla.com", "source": "http://todo.com/soon", "name": "Build Clang (Linux64)", "description": "Build Clang" }, "tags": { "createdForUser": "eakhgari@mozilla.com" }, "extra": { "index": { "rank": 92444 } } }