Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: tools/llvm_coverage_build

Issue 1242573003: llvm_coverage_build: Use CC and CXX variables by default (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Tweak version comment Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Build Skia for use with LLVM's coverage tools. 6 # Build Skia for use with LLVM's coverage tools.
7 # 7 #
8 # $ tools/llvm_coverage_build [any other flags to pass to make...] 8 # $ tools/llvm_coverage_build [any other flags to pass to make...]
9 # 9 #
10 # This script assumes the use of Clang >=3.6. 10 # This script assumes the use of Clang 3.6. Earlier versions do not support
11 # the flags we use in the build, and 3.7+ hit asserts during compilation.
11 # 12 #
12 set -e 13 set -e
13 14
14 export CC="$(which clang)" 15 export CC="${CC:-$(which clang)}"
15 export CXX="$(which clang++)" 16 export CXX="${CXX:-$(which clang++)}"
16 17
17 if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then 18 if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then
18 echo "Couldn't find Clang on this machine!" 19 echo "Couldn't find Clang on this machine!"
19 exit 1 20 exit 1
20 fi 21 fi
21 22
22 echo "CC=$CC" 23 echo "CC=$CC"
23 echo "CXX=$CXX" 24 echo "CXX=$CXX"
24 $CC --version 25 $CC --version
25 26
26 export GYP_DEFINES="skia_clang_build=1" 27 export GYP_DEFINES="skia_clang_build=1"
27 export BUILDTYPE=Coverage 28 export BUILDTYPE=Coverage
28 make $@ 29 make $@
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698