Skip to content

Commit

Permalink
Bug 1386588 - Add a toolchain job for Clang 4. r=gps
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Aug 2, 2017
1 parent 1e86c54 commit cf23b5a
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build/build-clang/clang-4-linux64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"llvm_revision": "305830",
"stages": "3",
"build_libcxx": true,
"build_type": "Release",
"assertions": false,
"llvm_repo": "https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_401/final",
"clang_repo": "https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_401/final",
"compiler_repo": "https://llvm.org/svn/llvm-project/compiler-rt/tags/RELEASE_401/final",
"libcxx_repo": "https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_401/final",
"libcxxabi_repo": "https://llvm.org/svn/llvm-project/libcxxabi/tags/RELEASE_401/final",
"python_path": "/usr/bin/python2.7",
"gcc_dir": "/home/worker/workspace/build/src/gcc",
"cc": "/home/worker/workspace/build/src/gcc/bin/gcc",
"cxx": "/home/worker/workspace/build/src/gcc/bin/g++",
"as": "/home/worker/workspace/build/src/gcc/bin/gcc",
"patches": [
"llvm-debug-frame.patch"
]
}
22 changes: 22 additions & 0 deletions taskcluster/ci/toolchain/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ linux64-clang-3.9:
toolchains:
- linux64-gcc-4.8

linux64-clang-4:
description: "Clang 4 toolchain build"
treeherder:
kind: build
platform: toolchains/opt
symbol: TL(clang4)
tier: 1
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
worker:
docker-image: {in-tree: desktop-build}
max-run-time: 36000
run:
using: toolchain-script
script: build-clang-4-linux.sh
resources:
- 'build/build-clang/build-clang.py'
- 'build/build-clang/clang-4-linux64.json'
- 'taskcluster/scripts/misc/tooltool-download.sh'
toolchain-artifact: public/build/clang.tar.xz
toolchains:
- linux64-gcc-4.8

linux64-clang-tidy:
description: "Clang-tidy build"
index:
Expand Down
25 changes: 25 additions & 0 deletions taskcluster/scripts/misc/build-clang-4-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -x -e -v

# This script is for building clang for Linux.

WORKSPACE=$HOME/workspace
HOME_DIR=$WORKSPACE/build
UPLOAD_DIR=$HOME/artifacts

cd $HOME_DIR/src

. taskcluster/scripts/misc/tooltool-download.sh

# gets a bit too verbose here
set +x

cd build/build-clang
# |mach python| sets up a virtualenv for us!
../../mach python ./build-clang.py -c clang-4-linux64.json

set -x

# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
cp clang.tar.* $UPLOAD_DIR

0 comments on commit cf23b5a

Please sign in to comment.