Chromium Code Reviews| Index: tools/asan_build |
| =================================================================== |
| --- tools/asan_build (revision 0) |
| +++ tools/asan_build (revision 0) |
| @@ -0,0 +1,33 @@ |
| +#!/bin/bash |
| + |
| +makeVars="$@" |
| + |
| +export CC="$(which clang)" |
|
epoger
2013/07/02 21:05:40
So I guess ASAN builds only work with clang? (It
borenet
2013/07/03 13:30:13
Added a comment.
|
| +export CXX="$(which clang++)" |
| +export LINK="$(which clang)" |
| + |
| +noClang="Couldn't find Clang on this machine!" |
| +if [[ -z "${CC}" ]]; then |
| + echo "${noClang}" |
| + exit 1 |
| +fi |
| +if [[ -z "${CXX}" ]]; then |
| + echo "${noClang}" |
| + exit 1 |
| +fi |
| +if [[ -z "${LINK}" ]]; then |
| + echo "${noClang}" |
| + exit 1 |
| +fi |
| + |
| +export GYP_DEFINES="skia_asan_build=1 ${GYP_DEFINES}" |
| + |
| +python gyp_skia |
| +if [[ "$?" != "0" ]]; then |
| + exit 1 |
| +fi |
| + |
| +make ${makeVars} |
| +if [[ "$?" != "0" ]]; then |
| + exit 1 |
| +fi |
| Property changes on: tools/asan_build |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |