vs10 64bit builds can not use /ZI http://msdn.microsoft.com/en-us/library/958x11bc(v=VS.100).aspx
This commit is contained in:
parent
ed6fa01f91
commit
ad5e8061c6
@ -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
|
||||
|
||||
|
@ -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"}
|
||||
|
||||
|
Reference in New Issue
Block a user