Removes the setting of WholeProgramOptimization for vs10 projects as per the msdn docs.

This commit is contained in:
liamDevine 2010-12-30 15:40:12 +00:00
parent 80cb617918
commit fb54aea2fa
4 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,7 @@
* Bug 2920784: Symbol visibility in Xcode3 libraries (burnson2)
* Bug 3133743: Sets ONLY_ACTIVE_ARCH = YES in Xcode debug builds (James Wynn)
* Properly pass return codes back to shell in release builds
* Bug 3135734: Removes WholeProgramOptimization setting in vs10 (doug)
-------
4.3

View File

@ -149,15 +149,8 @@ local vs10_helpers = premake.vstudio.vs10_helpers
if cfg.flags.MFC then
_p(2,'<UseOfMfc>Dynamic</UseOfMfc>')
end
local use_debug = "false"
if optimisation(cfg) == "Disabled" then
use_debug = "true"
else
_p(2,'<WholeProgramOptimization>true</WholeProgramOptimization>')
end
_p(2,'<UseDebugLibraries>%s</UseDebugLibraries>',use_debug)
_p(2,'<UseDebugLibraries>%s</UseDebugLibraries>'
,iif(optimisation(cfg) == "Disabled","true","false"))
_p(1,'</PropertyGroup>')
end
end

View File

@ -422,3 +422,8 @@
..release_config_pch_string ..'%s+</ClCompile>'
test.string_contains(buffer,expected)
end
function vs10_vcxproj.wholeProgramOptimizationIsNotSetByDefault_bufferDoesNotContainWholeProgramOptimization()
local buffer = get_buffer()
test.string_does_not_contain(buffer,"WholeProgramOptimization")
end

View File

@ -1,2 +1,3 @@
CALL ..\\bin\\debug\\premake4 /scripts=..\\src test
CALL ..\\bin\\debug\\premake4 /scripts=..\\src test
::CALL ..\\bin\\release\\premake4 /scripts=..\\src test