Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Windows: Add /DEBUG to linker command line if debug symbols are reque…

…sted.
  • Loading branch information...
commit e239bd6e8715f1b1f87447044adc04b0575d9369 1 parent a2d433c
@redstar redstar authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 driver/linker.cpp
View
4 driver/linker.cpp
@@ -282,6 +282,10 @@ int linkObjToBinaryWin(bool sharedLib)
// because of a LLVM bug
args.push_back("/LARGEADDRESSAWARE:NO");
+ // output debug information
+ if (global.params.symdebug)
+ args.push_back("/DEBUG");
+
// specify creation of DLL
if (sharedLib)
args.push_back("/DLL");

3 comments on commit e239bd6

@klickverbot

So your LLVM CV patches are coming along nicely?

@redstar
Owner

Creating the CV data seems to be really easy. I plan to ask about the design in the LLVM mailing list in near future. If it is ok then I would try to get at least the infrastructure committed soon. The real CV emitter will take some time due to the fact that DWARF and CV are non-trivial data formats.
And yes, I hope to see debug symbols for trivial declarations like long add(long a, long b) { return a+b; } real soon.

@klickverbot

Great to hear. Now if just cloning were feasible – then we could have another copy of you work on EH support… ;) (seen your patches on the ML, btw)

Please sign in to comment.
Something went wrong with that request. Please try again.