diff options
Diffstat (limited to 'third_party/tcmalloc/tcmalloc.gyp')
-rw-r--r-- | third_party/tcmalloc/tcmalloc.gyp | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/third_party/tcmalloc/tcmalloc.gyp b/third_party/tcmalloc/tcmalloc.gyp index 43fc60d..41e7664 100644 --- a/third_party/tcmalloc/tcmalloc.gyp +++ b/third_party/tcmalloc/tcmalloc.gyp @@ -21,12 +21,30 @@ 'tcmalloc/src', ], 'direct_dependent_settings': { - 'msvs_settings': { - 'VCLinkerTool': { - 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], - 'AdditionalDependencies': [ - '<(SHARED_INTERMEDIATE_DIR)/tcmalloc/libcmt.lib' - ], + 'configurations': { + # TODO(bradnelson): find a way to make this more graceful in gyp. + # Ideally configurations should be able to have some sort of + # inheritance hierarchy. So that Purify no-tcmalloc could be + # be derived from Release. + 'Debug': { + 'msvs_settings': { + 'VCLinkerTool': { + 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], + 'AdditionalDependencies': [ + '<(SHARED_INTERMEDIATE_DIR)/tcmalloc/libcmt.lib' + ], + }, + }, + }, + 'Release': { + 'msvs_settings': { + 'VCLinkerTool': { + 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], + 'AdditionalDependencies': [ + '<(SHARED_INTERMEDIATE_DIR)/tcmalloc/libcmt.lib' + ], + }, + }, }, }, }, |