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

Side by Side Diff: tools/xsan_build

Issue 25564003: skia/trunk changes for generic sanitizer gyp flag. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: borenet Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/asan_build ('k') | 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
(Empty)
1 #!/bin/bash
2
3 # Build Skia with one of Clang's many sanitizers.
4 #
5 # $ tools/xsan_build {address,thread,undefined,etc.} [any other flags to pass to make/ninja...]
6 #
7 # This script assumes the use of Clang >=3.2.
8 #
9 # For more information, see:
10 # http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation
11
12 set -e
13
14 sanitizer=$1
15 shift
16 args="$@"
17
18 export CC="$(which clang)"
19 export CXX="$(which clang++)"
20 export LINK="$(which clang)"
21
22 if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]] || [[ -z "${LINK}" ]]; then
23 echo "Couldn't find Clang on this machine!"
24 exit 1
25 fi
26
27 export GYP_DEFINES="skia_sanitizer=$sanitizer ${GYP_DEFINES}"
28
29 ./gyp_skia
30 if [[ $GYP_GENERATORS == "ninja" ]]; then
31 ninja ${args}
32 else
33 make ${args}
34 fi
OLDNEW
« no previous file with comments | « tools/asan_build ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698