From c8d43604e70ecb2d2edc2e47f5d3fb7273f9923a 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 e05da1680f2d69..9245cbc784dc75 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' ], }],