Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index f47987633bc652221139f563b0aa35604d40a871..761a415b8748c01541eedd511b7f4ef69a890180 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -2502,6 +2502,12 @@ |
'ENABLE_EGLIMAGE=1', |
], |
}], |
+ ['asan==1', { |
+ 'defines': [ |
+ 'ADDRESS_SANITIZER', |
+ 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
+ ], |
+ }], |
['syzyasan==1', { |
# SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
'msvs_settings': { |
@@ -3715,9 +3721,6 @@ |
'ldflags': [ |
'-fsanitize=address', |
], |
- 'defines': [ |
- 'ADDRESS_SANITIZER', |
- ], |
}], |
], |
'conditions': [ |
@@ -4450,10 +4453,6 @@ |
'-w', # http://crbug.com/162783 |
], |
}, |
- 'defines': [ |
- 'ADDRESS_SANITIZER', |
- 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
- ], |
}], |
['asan_coverage!=0', { |
'target_conditions': [ |