Use a "random" name for the PDB instead of vc141.pdb
.
Visual Studio Option:
/Fd$(IntDir)$(TargetName)-$([System.DateTime]::Now.ToString("HH_mm_ss_fff")).pdb
Premake5 configuration (at top of premake5.lua):
local function programDataBaseFileName(prj)
premake.w('<ProgramDataBaseFileName>$(IntDir)$(TargetName)-$([System.DateTime]::Now.ToString("HH_mm_ss_fff")).pdb</ProgramDataBaseFileName>')
end
premake.override(premake.vstudio.vc2010.elements, "clCompile", function(base, prj)
local calls = base(prj)
table.insertafter(calls, calls.debugInformationFormat, programDataBaseFileName)
return calls
end)