blob: 07b547f06bd226979afbf0988151ecb566e137b5 [file] [log] [blame]
borenet11271fe2015-07-06 07:43:58 -07001#!/bin/bash
2# Copyright (c) 2015 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Build Skia for use with LLVM's coverage tools.
7#
8# $ tools/llvm_coverage_build [any other flags to pass to make...]
9#
10# This script assumes the use of Clang >=3.6.
11#
12set -e
13
14export CC="$(which clang)"
15export CXX="$(which clang++)"
16
17if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then
18 echo "Couldn't find Clang on this machine!"
19 exit 1
20fi
21
22echo "CC=$CC"
23echo "CXX=$CXX"
24$CC --version
25
mtkleinf0599002015-07-13 06:18:39 -070026export GYP_DEFINES="skia_clang_build=1"
borenet11271fe2015-07-06 07:43:58 -070027export BUILDTYPE=Coverage
28make $@