Windows: Add /DEBUG to linker command line if debug symbols are requested.

This commit is contained in:
kai
2012-11-27 06:32:52 +01:00
parent a2d433c7f4
commit e239bd6e87

View File

@@ -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");