Bug 1306650 - part 3 - add clang-cl toolchain builds; r=dustin

The build-clang-windows.sh is basically an exact copy of the Linux one
at the moment; we'll fix it up for all the Windows-specific taskcluster
bits in a future commit.
This commit is contained in:
Nathan Froyd 2016-10-26 16:18:24 -04:00
Родитель 73b37920ec
Коммит 86798869c9
3 изменённых файлов: 55 добавлений и 0 удалений

Просмотреть файл

@ -11,3 +11,4 @@ transforms:
jobs-from:
- linux.yml
- windows.yml

Просмотреть файл

@ -0,0 +1,22 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
win32-clang-cl/opt:
description: "Clang-cl toolchain build"
treeherder:
kind: build
platform: windows-2012-32/opt
symbol: Cc(ClangCL)
tier: 2
worker-type: aws-provisioner-v1/gecko-{level}-b-win2012
worker:
implementation: generic-worker
max-run-time: 36000
run:
using: toolchain-script
script: build-clang-windows.sh
when:
files-changed:
- 'build/build-clang/**'
- 'taskcluster/scripts/misc/build-clang-windows.sh'

Просмотреть файл

@ -0,0 +1,32 @@
#!/bin/bash
set -x -e -v
# This script is for building clang-cl on Windows.
# Fetch our toolchain from tooltool.
wget -O tooltool.py ${TOOLTOOL_REPO}/raw/${TOOLTOOL_REV}/tooltool.py
chmod +x tooltool.py
: TOOLTOOL_CACHE ${TOOLTOOL_CACHE:=/home/worker/tooltool-cache}
export TOOLTOOL_CACHE
TOOLTOOL_AUTH_FILE=/c/builds/relengapi.tok
if [ ! -e ${TOOLTOOL_AUTH_FILE} ]; then
echo cannot find ${TOOLTOOL_AUTH_FILE}
exit 1
fi
TOOLTOOL_MANIFEST=build/src/browser/config/tooltool-manifests/win32/releng.manifest
./tooltool.py --authentication-file="${TOOLTOOL_AUTH_FILE}" -m "${TOOLTOOL_MANIFEST}" fetch
# gets a bit too verbose here
set +x
cd build/src/build/build-clang
/c/mozilla-build/python/python.exe ./build-clang.py -c clang-static-analysis-win32.json
set -x
# Put a tarball in the artifacts dir
mkdir -p ${UPLOAD_PATH}
cp clang.tar.* ${UPLOAD_PATH}