Permalink
Browse files

attempt to quiet some of the compiler warnings on windows

  • Loading branch information...
1 parent 7643cd5 commit 0cc15f7b067e14fde4539a3ca07d7d73d4da7d01 Brandon Benvie committed Aug 19, 2012
Showing with 26 additions and 5 deletions.
  1. +26 −5 binding.gyp
View
@@ -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',
@@ -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'
+ ],
},
}]
]

0 comments on commit 0cc15f7

Please sign in to comment.