Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
attempt to quiet some of the compiler warnings on windows
  • Loading branch information
Brandon Benvie committed Aug 19, 2012
1 parent 7643cd5 commit 0cc15f7
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions binding.gyp
Expand Up @@ -308,6 +308,27 @@
}
}],
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
'OmitFramePointers': 'true',
'EnableFunctionLevelLinking': 'true',
'EnableIntrinsicFunctions': 'true',
'RuntimeTypeInfo': 'false',
'ExceptionHandling': '1',
},
'VCLibrarianTool': {
'AdditionalOptions': [
'/LTCG', # link time code generation
],
},
'VCLinkerTool': {
'LinkTimeCodeGeneration': 1, # link-time code generation
'OptimizeReferences': 2, # /OPT:REF
'EnableCOMDATFolding': 2, # /OPT:ICF
'LinkIncremental': 1, # disable incremental linking
},
},
'sources': [
'src/includes/util_win.cpp',
'src/native_window/native_window_win.cpp',
Expand All @@ -317,11 +338,11 @@
'_WINSOCKAPI_'
],
'link_settings': {
'libraries': [
'GdiPlus.lib',
'<(module_root_dir)/deps/cef/lib/Release/libcef.lib',
'<(module_root_dir)/build/Release/lib/libcef_dll_wrapper.node'
],
'libraries': [
'GdiPlus.lib',
'<(module_root_dir)/deps/cef/lib/Release/libcef.lib',
'<(module_root_dir)/build/Release/lib/libcef_dll_wrapper.node'
],
},
}]
]
Expand Down

0 comments on commit 0cc15f7

Please sign in to comment.