summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorKarl Skomski <karl@skomski.com>2015-08-14 10:07:18 +0200
committerRod Vagg <rod@vagg.org>2015-09-06 21:38:00 +1000
commit6ed0603fb1d2cd3b6c6406709514622e9545fb82 (patch)
treef200bc48a3a4d784b3a4b01ad83eb729323d51c0 /common.gypi
parent32037b78a20ba9df2e80cae7d2c0f4ce9efbeac9 (diff)
downloadandroid-node-v8-6ed0603fb1d2cd3b6c6406709514622e9545fb82.tar.gz
android-node-v8-6ed0603fb1d2cd3b6c6406709514622e9545fb82.tar.bz2
android-node-v8-6ed0603fb1d2cd3b6c6406709514622e9545fb82.zip
build: add --enable-asan with builtin leakcheck
PR-URL: https://github.com/nodejs/node/pull/2376 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi22
1 files changed, 20 insertions, 2 deletions
diff --git a/common.gypi b/common.gypi
index 7972c2d60a..7819816bbb 100644
--- a/common.gypi
+++ b/common.gypi
@@ -173,16 +173,34 @@
},
'msvs_disabled_warnings': [4351, 4355, 4800],
'conditions': [
- ['asan != 0', {
+ ['asan == 1 and OS != "mac"', {
'cflags+': [
'-fno-omit-frame-pointer',
'-fsanitize=address',
- '-w', # http://crbug.com/162783
+ '-DLEAK_SANITIZER'
],
'cflags_cc+': [ '-gline-tables-only' ],
'cflags!': [ '-fomit-frame-pointer' ],
'ldflags': [ '-fsanitize=address' ],
}],
+ ['asan == 1 and OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS+': [
+ '-fno-omit-frame-pointer',
+ '-gline-tables-only',
+ '-fsanitize=address',
+ '-DLEAK_SANITIZER'
+ ],
+ 'OTHER_CFLAGS!': [
+ '-fomit-frame-pointer',
+ ],
+ },
+ 'target_conditions': [
+ ['_type!="static_library"', {
+ 'xcode_settings': {'OTHER_LDFLAGS': ['-fsanitize=address']},
+ }],
+ ],
+ }],
['OS == "win"', {
'msvs_cygwin_shell': 0, # prevent actions from trying to use cygwin
'defines': [