-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename .pdb file name as targetname. #162
Conversation
As I mentioned on #151, we'd ideally like to keep the default VS behavior if we can. It would be good to know how and when VS decides to rename that file on its own; we might be able to apply the same behavior. But as far as this request, it should probably be Also, the tests need to pass. |
yeah, your opinion is quite well. I modify from |
Great, that looks better. I'd like to take a quick look at how VS does things by default before I merge this. I will try to do it this weekend if I can! |
I remember I had issues with Edit and Continue feature, if my pdb's were named after the project's name. |
Hmm, that's a good reason for more testing. Though not everyone wants their PDB in $(IntDir). @leeonix: Maybe we should instead add a new API like |
Just a quick thought; I have vague recollection of some of the VS macros changing names between an older version (2008/2010-ish?) and the recent versions. I recall having some projects that were broken because the macro's didn't resolve... is there anyone who can confirm with confidence that this isn't one of the ones that changed name? Perhaps I'm imagining this? |
Currently, we don't output a at all and just let VS use its own defaults. So there is no variable being used that could have changed and broken. Unless I misunderstood your question? |
It used to be this: function m.programDataBaseFileName(cfg)
if cfg.debugformat ~= "c7" and cfg.flags.Symbols then
local filename = cfg.buildtarget.basename
p.w('<ProgramDataBaseFileName>$(OutDir)%s.pdb</ProgramDataBaseFileName>', filename)
end
end we changes it back to that... not sure why it was removed, but that is pretty much the behavior Leeonix is looking for I think.... and I reaallly don't want a pdbname API..... |
@tvandijck First modification, I use |
Yeah, that should be possible indeed... probably even more generic... anyway, I don't mind this as a local change here, it's an easy merge... and alternatively we can just override it in our module... that's kind of what the comment in that function suggest we should do anyway. |
@starkos This patch introduces use of |
@tvandijck, I guess, it was my request, since this broke Edit & Continue in VS. |
@akaStiX: any chance you could cut-and-paste the code above back into that function and see if you can reproduce your issue? I tried quickly here and couldn't, but I may not have matched your setup. Otherwise I'm fine with putting the code back in. Like I said above, I removed the markup only to match the default behavior of VS; if it is causing issues for people it should go back in (perhaps bit a comment to remind me why we need it so I don't take it out again in the future :p ) |
@starkos I am running VS2015 ATM and I cannot reproduce the issue I had there. But it was affecting VS2012 back in the days, when I've faced it. |
@leeonix: can you update the request to match the code provided by @tvandijck? if cfg.debugformat ~= "c7" and cfg.flags.Symbols then I will put together a VS 2012 test and see if I can reproduce the problem and, if not (it may have been fixed by a service pack) we'll merge this and see if anyone yells. Sound good? |
@starkos Yeah, I'll do it. |
I'm all for merging this, the old behaviour of naming the PDB the same as the output target makes more sense than the VS default IMHO. |
rename .pdb file name as targetname.
Thanks! |
Reposting here so more people will see it: I've been asked to revisit this and to figure out why this change was necessary. I manually generated a bunch of projects through the UI, for various versions of Visual Studio. The default Program Database File Name is, indeed, Since it appears in my testing that we get the desired behavior without the need for this element, I'm inclined to roll back #162 and allow Visual Studio to use its default behavior again. Can you provide any more information on why you felt you needed to change it? Is minidump not able to use the PDB file that is already in the target directory? |
As discussed in the conversion on the request, and on issue premake#151.
Resolve the rule properties for gmake (#162)
issue: #151