Make asan and lsan make flags work like on the bots.
authormachenbach@chromium.org <machenbach@chromium.org>
Mon, 6 Oct 2014 15:21:37 +0000 (15:21 +0000)
committermachenbach@chromium.org <machenbach@chromium.org>
Mon, 6 Oct 2014 15:21:37 +0000 (15:21 +0000)
BUG=
R=ishell@chromium.org, jkummerow@chromium.org

Review URL: https://codereview.chromium.org/631763003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24419 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

Makefile

index 70162df..e96362e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -140,10 +140,15 @@ endif
 # asan=/path/to/clang++
 ifneq ($(strip $(asan)),)
   GYPFLAGS += -Dasan=1
+  export CC=$(dir $(asan))clang
   export CXX=$(asan)
   export CXX_host=$(asan)
   export LINK=$(asan)
-  export ASAN_SYMBOLIZER_PATH="$(dir $(asan))llvm-symbolizer"
+  export ASAN_SYMBOLIZER_PATH=$(dir $(asan))llvm-symbolizer
+  TESTFLAGS += --asan
+  ifeq ($(lsan), on)
+    GYPFLAGS += -Dlsan=1
+  endif
 endif
 
 # arm specific flags.