Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
dynamically link the C/C++ runtime on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Nov 10, 2014
1 parent ffe96f7 commit a8e3166
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
'RuntimeLibrary': 3, # MDd
'Optimization': 0, # /Od, no optimization
'MinimalRebuild': 'false',
'OmitFramePointers': 'false',
Expand Down Expand Up @@ -96,7 +96,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
'RuntimeLibrary': 2, # MD
'Optimization': 3, # /Ox, full optimization
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
Expand Down
8 changes: 4 additions & 4 deletions deps/cares/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
'VCCLCompilerTool': {
'target_conditions': [
['library=="static_library"', {
'RuntimeLibrary': 1 # static debug
'RuntimeLibrary': 3 # MDd
}, {
'RuntimeLibrary': 3 # DLL debug
'RuntimeLibrary': 3 # MDd
}]
],
'Optimization': 0, # /Od, no optimization
Expand Down Expand Up @@ -49,9 +49,9 @@
'VCCLCompilerTool': {
'target_conditions': [
['library=="static_library"', {
'RuntimeLibrary': 0, # static release
'RuntimeLibrary': 2 # MD
}, {
'RuntimeLibrary': 2, # debug release
'RuntimeLibrary': 2 # MD
}],
],
'Optimization': 3, # /Ox, full optimization
Expand Down
4 changes: 2 additions & 2 deletions deps/http_parser/http_parser.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
'RuntimeLibrary': 3 # MDd
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
'RuntimeLibrary': 2 # MD
},
},
}
Expand Down
8 changes: 4 additions & 4 deletions deps/uv/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
'VCCLCompilerTool': {
'target_conditions': [
['library=="static_library"', {
'RuntimeLibrary': 1, # static debug
'RuntimeLibrary': 3 # MDd
}, {
'RuntimeLibrary': 3, # DLL debug
'RuntimeLibrary': 3 # MDd
}],
],
'Optimization': 0, # /Od, no optimization
Expand Down Expand Up @@ -57,9 +57,9 @@
'VCCLCompilerTool': {
'target_conditions': [
['library=="static_library"', {
'RuntimeLibrary': 0, # static release
'RuntimeLibrary': 2 # MD
}, {
'RuntimeLibrary': 2, # debug release
'RuntimeLibrary': 2 # MD
}],
],
'Optimization': 3, # /Ox, full optimization
Expand Down
8 changes: 4 additions & 4 deletions deps/v8/build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@

'conditions': [
['OS=="win" and component=="shared_library"', {
'RuntimeLibrary': '3', # /MDd
'RuntimeLibrary': 3 # MDd
}, {
'RuntimeLibrary': '1', # /MTd
'RuntimeLibrary': 3 # MDd
}],
],
},
Expand Down Expand Up @@ -409,9 +409,9 @@
'StringPooling': 'true',
'conditions': [
['OS=="win" and component=="shared_library"', {
'RuntimeLibrary': '2', #/MD
'RuntimeLibrary': 2 # MD
}, {
'RuntimeLibrary': '0', #/MT
'RuntimeLibrary': 2 # MD
}],
['v8_target_arch=="x64"', {
# TODO(2207): remove this option once the bug is fixed.
Expand Down

0 comments on commit a8e3166

Please sign in to comment.