Index: Makefile |
diff --git a/Makefile b/Makefile |
index f3900286cbd33b5534e0b7d96a483a08a9a1dc74..cdf5d74832fa79bbdc4a5b4abde0faedc8cfa8e2 100644 |
--- a/Makefile |
+++ b/Makefile |
@@ -136,7 +136,16 @@ endif |
# deprecation_warnings=on |
ifeq ($(deprecationwarnings), on) |
GYPFLAGS += -Dv8_deprecation_warnings=1 |
-endif |
+endif |
+# asan=/path/to/clang++ |
+ifneq ($(strip $(asan)),) |
+ GYPFLAGS += -Dasan=1 |
+ export CXX="$(asan)" |
+ export CXX_host="$(asan)" |
+ export LINK="$(asan)" |
+ export ASAN_SYMBOLIZER_PATH="$(dir $(asan))llvm-symbolizer" |
+endif |
+ |
# arm specific flags. |
# arm_version=<number | "default"> |
ifneq ($(strip $(arm_version)),) |