Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

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

3 comments on commit e239bd6


So your LLVM CV patches are coming along nicely?


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.


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.