Index: Makefile |
diff --git a/Makefile b/Makefile |
index 70162df45a07d352187d31d6f998792efc491028..e96362e0ca1008c2c976bcb6786a7dd8041b898e 100644 |
--- 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. |