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

Unified Diff: tools/asan_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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/common_variables.gypi ('k') | tools/xsan_build » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/asan_build
diff --git a/tools/asan_build b/tools/asan_build
deleted file mode 100755
index 49817f66d4a2c4f6985d8d72c9b4098a0b43a31d..0000000000000000000000000000000000000000
--- a/tools/asan_build
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# Build Skia with Address Sanitizer.
-#
-# Address Sanitizer is available in LLVM (and Clang) 3.1 and above, as well as
-# GCC 4.8. For now, this script assumes the use of Clang 3.2 or newer, which
-# uses different flag syntax from 3.1.
-#
-# For more information, see:
-# https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer
-
-makeVars="$@"
-
-export CC="$(which clang)"
-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
« no previous file with comments | « gyp/common_variables.gypi ('k') | tools/xsan_build » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698