Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 60591d323a193a7b7e19bfc5adcce2fe2afd0ba0..9310588080e6387064e54ad9314e853659c68959 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1399,6 +1399,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. |
@@ -2760,6 +2763,12 @@ |
['profiling==1', { |
'defines': ['ENABLE_PROFILING=1'], |
}], |
+ ['enable_leak_detector==1 and chromeos==1', { |
+ 'defines': ['ENABLE_LEAK_DETECTOR=1'], |
+ }], |
+ ['remoting==1', { |
+ 'defines': ['ENABLE_REMOTING=1'], |
Will Harris
2015/09/26 05:09:06
driveby: this looks like a confused rebase?
Simon Que
2015/09/26 21:48:33
Done.
|
+ }], |
['enable_webrtc==1', { |
'defines': ['ENABLE_WEBRTC=1'], |
}], |
@@ -3893,6 +3902,11 @@ |
'release_optimize%': 's', |
}, |
}], |
+ ['enable_leak_detector==1 and chromeos==1', { |
+ 'cflags': [ |
+ '-fno-omit-frame-pointer', |
+ ], |
+ }], |
['profiling==1', { |
'cflags': [ |
'-fno-omit-frame-pointer', |