summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi46
1 files changed, 46 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index f30f3a0..20887c3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -244,6 +244,52 @@
}],
],
},
+ 'conditions': [
+ [ 'OS=="win"', {
+ # TODO(bradnelson): add a gyp mechanism to make this more graceful.
+ 'Purify': {
+ 'defines': [
+ 'NDEBUG',
+ 'PURIFY',
+ 'NO_TCMALLOC',
+ ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '0',
+ 'RuntimeLibrary': '0',
+ 'BufferSecurityCheck': 'false',
+ },
+ 'VCLinkerTool': {
+ 'EnableCOMDATFolding': '1',
+ 'LinkIncremental': '1',
+ },
+ },
+ 'conditions': [
+ [ 'msvs_use_common_release', {
+ 'configuration_platform': 'Win32',
+ 'msvs_props': ['release.vsprops'],
+ }],
+ ],
+ },
+ 'Release - no tcmalloc': {
+ 'defines': [
+ 'NDEBUG',
+ 'NO_TCMALLOC',
+ ],
+ 'conditions': [
+ [ 'msvs_use_common_release', {
+ 'configuration_platform': 'Win32',
+ 'msvs_props': ['release.vsprops'],
+ }],
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'LinkIncremental': '1',
+ },
+ },
+ },
+ }],
+ ],
},
},
'conditions': [