Commits

Yuriy O'Donnell committed bb01c4b

LinkTimeCodeGeneration flag in vs2010ng.

Comments (0)

Files changed (1)

src/actions/vstudio/vs2010_vcxproj.lua

 			_p(3,'<MinimalRebuild>false</MinimalRebuild>')
 		end
 
+		if cfg.flags.LinkTimeCodeGeneration then
+			_p(3, '<WholeProgramOptimization>true</WholeProgramOptimization>')
+		end
+
 		if cfg.flags.NoFramePointer then
 			_p(3,'<OmitFramePointers>true</OmitFramePointers>')
 		end
 			_p(3,'<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>')
 		end
 
+		if cfg.flags.LinkTimeCodeGeneration then
+				_p(3, '<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>')
+		end
+
 		vc2010.additionalLinkOptions(cfg)
 	end
 
 	function vc2010.link_static(cfg)
 		_p(2,'<Lib>')
+
+		if cfg.flags.LinkTimeCodeGeneration then
+			_p(3, '<LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>')
+		end
+
 		vc2010.additionalLinkOptions(cfg)
 		_p(2,'</Lib>')
 	end