File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
'variables' : {
3
3
'node_engine_include_dir%' : 'deps/v8/include' ,
4
- 'node_host_binary%' : 'node'
4
+ 'node_host_binary%' : 'node' ,
5
+ 'node_with_ltcg%' : 'true' ,
5
6
},
6
7
'target_defaults' : {
7
8
'type' : 'loadable_module' ,
126
127
'library_dirs' : [ '<(node_root_dir)/$(ConfigurationName)' ],
127
128
'libraries' : [ '<@(node_engine_libs)' ],
128
129
}],
130
+ ['node_with_ltcg=="true"' , {
131
+ 'msvs_settings' : {
132
+ 'VCCLCompilerTool' : {
133
+ 'WholeProgramOptimization' : 'true' # /GL, whole program optimization, needed for LTCG
134
+ },
135
+ 'VCLibrarianTool' : {
136
+ 'AdditionalOptions' : [
137
+ '/LTCG:INCREMENTAL' , # incremental link-time code generation
138
+ ]
139
+ },
140
+ 'VCLinkerTool' : {
141
+ 'OptimizeReferences' : 2 , # /OPT:REF
142
+ 'EnableCOMDATFolding' : 2 , # /OPT:ICF
143
+ 'LinkIncremental' : 1 , # disable incremental linking
144
+ 'AdditionalOptions' : [
145
+ '/LTCG:INCREMENTAL' , # incremental link-time code generation
146
+ ]
147
+ }
148
+ }
149
+ }]
129
150
],
130
151
'libraries' : [
131
152
'-lkernel32.lib' ,
You can’t perform that action at this time.
0 commit comments