Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 70d2ec571f5181e5207aa9f2df232e9a5445eab8..072ee93a915757a81b27ced35dbb04cc71ba8ca0 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1364,6 +1364,9 @@ |
# Profile without optimizing out stack frames when profiling==1. |
'profiling_full_stack_frames%': '0', |
+ # Enable runtime memory leak detector. |
+ 'enable_leak_detector%': 0, |
+ |
# And if we want to dump symbols for Breakpad-enabled builds. |
'linux_dump_symbols%': 0, |
# And if we want to strip the binary after dumping symbols. |
@@ -2707,6 +2710,9 @@ |
['profiling==1', { |
'defines': ['ENABLE_PROFILING=1'], |
}], |
+ ['enable_leak_detector==1 and chromeos==1', { |
+ 'defines': ['ENABLE_LEAK_DETECTOR=1'], |
+ }], |
['remoting==1', { |
'defines': ['ENABLE_REMOTING=1'], |
}], |
@@ -3815,6 +3821,11 @@ |
'release_optimize%': 's', |
}, |
}], |
+ ['enable_leak_detector==1 and chromeos==1', { |
+ 'cflags': [ |
+ '-fno-omit-frame-pointer', |
+ ], |
+ }], |
['profiling==1', { |
'cflags': [ |
'-fno-omit-frame-pointer', |