pdb file was being written to the 'Link' section when it needed to be in 'ClCompile'. Reported by hodsondd closes bug report: https://sourceforge.net/tracker/?func=detail&aid=3163703&group_id=71616&atid=531878
This commit is contained in:
parent
b116d76cbb
commit
ea9ac28488
@ -81,6 +81,7 @@
|
||||
- Bug 2927604: Unable to build Premake with Visual Studio
|
||||
- Clean action now removes MonoDevelop .pidb files correctly
|
||||
- Added os.executef()
|
||||
- Bug 3163703: pdb file being set in the wrong section. (hodsondd)
|
||||
|
||||
|
||||
-------
|
||||
|
@ -377,6 +377,10 @@ local vs10_helpers = premake.vstudio.vs10_helpers
|
||||
floating_point(cfg)
|
||||
debug_info(cfg)
|
||||
|
||||
if cfg.flags.Symbols then
|
||||
_p(3,'<ProgramDataBaseFileName>$(OutDir)%s.pdb</ProgramDataBaseFileName>'
|
||||
, path.getbasename(cfg.buildtarget.name))
|
||||
end
|
||||
|
||||
if cfg.flags.NoFramePointer then
|
||||
_p(3,'<OmitFramePointers>true</OmitFramePointers>')
|
||||
@ -455,11 +459,6 @@ local vs10_helpers = premake.vstudio.vs10_helpers
|
||||
_p(3,'<OptimizeReferences>true</OptimizeReferences>')
|
||||
_p(3,'<EnableCOMDATFolding>true</EnableCOMDATFolding>')
|
||||
end
|
||||
|
||||
if cfg.flags.Symbols then
|
||||
_p(3,'<ProgramDataBaseFileName>$(OutDir)%s.pdb</ProgramDataBaseFileName>'
|
||||
, path.getbasename(cfg.buildtarget.name))
|
||||
end
|
||||
end
|
||||
|
||||
local function item_link(cfg)
|
||||
|
@ -252,7 +252,7 @@ end
|
||||
function vs10_flags.symbols_bufferContainsprogramDataBaseFile()
|
||||
flags{"Symbols"}
|
||||
local buffer = get_buffer()
|
||||
test.string_contains(buffer,'<Link>.*<ProgramDataBaseFileName>%$%(OutDir%)MyProject%.pdb</ProgramDataBaseFileName>.*</Link>')
|
||||
test.string_contains(buffer,'<ClCompile>.*<ProgramDataBaseFileName>%$%(OutDir%)MyProject%.pdb</ProgramDataBaseFileName>.*</ClCompile>')
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user