From 3e55284e9b00b135c77f42936a615d18be1610f3 Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Fri, 10 Apr 2020 16:07:52 -0700 Subject: [PATCH] build: use same flags as V8 for ASAN Signed-off-by: Matheus Marchini PR-URL: https://github.com/nodejs/node/pull/32776 Reviewed-By: Anna Henningsen Reviewed-By: Jiawen Geng Reviewed-By: Colin Ihrig --- common.gypi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index d39668b100d33c..fb364b55f5e63e 100644 --- a/common.gypi +++ b/common.gypi @@ -284,8 +284,9 @@ 'cflags+': [ '-fno-omit-frame-pointer', '-fsanitize=address', - '-DLEAK_SANITIZER' + '-fsanitize-address-use-after-scope', ], + 'defines': [ 'LEAK_SANITIZER', 'V8_USE_ADDRESS_SANITIZER' ], 'cflags!': [ '-fomit-frame-pointer' ], 'ldflags': [ '-fsanitize=address' ], }],