Index: base/allocator/allocator.gyp |
diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp |
index 428d68de5842b3d03ff3fa77113756033f36e45a..45a95bbdc2669a0dafdd9fa9caaf0f050d7b921b 100644 |
--- a/base/allocator/allocator.gyp |
+++ b/base/allocator/allocator.gyp |
@@ -31,7 +31,6 @@ |
# static lib can confuse some gyp generators). Fix it once the refactoring |
# (crbug.com/564618) bring this file to a saner state (fewer conditions). |
'type': 'static_library', |
- 'toolsets': ['host', 'target'], |
'conditions': [ |
['OS=="win" and win_use_allocator_shim==1', { |
'msvs_settings': { |
@@ -52,21 +51,25 @@ |
'sources': [ |
'allocator_shim_win.cc', |
], |
- 'link_settings': { |
- 'msvs_settings': { |
- 'VCLinkerTool': { |
- 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], |
- 'AdditionalDependencies': [ |
- '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib' |
- ], |
- }, |
- }, |
- }, |
'configurations': { |
'Debug_Base': { |
'msvs_settings': { |
'VCCLCompilerTool': { |
'RuntimeLibrary': '0', |
+ }, |
+ }, |
+ }, |
+ }, |
+ 'direct_dependent_settings': { |
+ 'configurations': { |
+ 'Common_Base': { |
+ 'msvs_settings': { |
+ 'VCLinkerTool': { |
+ 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], |
+ 'AdditionalDependencies': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib' |
+ ], |
+ }, |
}, |
}, |
}, |
@@ -369,7 +372,7 @@ |
}, # 'allocator' target. |
], # targets. |
'conditions': [ |
- ['OS=="win" and win_use_allocator_shim==1', { |
+ ['OS=="win" and component!="shared_library"', { |
'targets': [ |
{ |
'target_name': 'libcmt', |