diff --git a/common.gypi b/common.gypi index d39668b100d..fb364b55f5e 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' ], }],