This commit is contained in:
liamDevine 2010-11-01 02:20:35 +00:00
parent ed6fa01f91
commit ad5e8061c6
2 changed files with 11 additions and 21 deletions

View File

@ -303,26 +303,7 @@ local vs10_helpers = premake.vstudio.vs10_helpers
end
end
--have a look at this and translate
--
--function vs10_vcxproj_symbols(cfg)
-- if (not cfg.flags.Symbols) then
-- return 0
-- else
-- Edit-and-continue does't work for some configurations
-- if cfg.flags.NoEditAndContinue or
-- _VS.optimization(cfg) ~= 0 or
-- cfg.flags.Managed or
-- cfg.platform == "x64" then
-- return 3
-- else
-- return 4
-- end
-- end
--end
--
local function debug_info(cfg)
--
-- EditAndContinue /ZI
@ -333,8 +314,10 @@ local vs10_helpers = premake.vstudio.vs10_helpers
if cfg.flags.Symbols then
if optimisation(cfg) ~= "Disabled" or cfg.flags.NoEditAndContinue then
debug_info = "ProgramDatabase"
else
elseif cfg.platform ~= "x64" then
debug_info = "EditAndContinue"
else
debug_info = "OldStyle"
end
end

View File

@ -231,6 +231,13 @@ function vs10_flags.noSymbols_DebugInformationFormat_blockIsEmpty()
test.string_contains(buffer,'<DebugInformationFormat></DebugInformationFormat>')
end
function vs10_flags.symbols_64BitBuild_DebugInformationFormat_setToOldStyle()
flags{"Symbols"}
platforms{"x64"}
local buffer = get_buffer()
test.string_contains(buffer,'<DebugInformationFormat>OldStyle</DebugInformationFormat>')
end
function vs10_flags.noManifest_GenerateManifest_setToFalse()
flags{"NoManifest"}