better debugging support for native debuggers; changed name mangling; fixes #3471
This commit is contained in:
parent
97129ebd8a
commit
b654aa399a
3 changed files with 164 additions and 58 deletions
|
|
@ -16,6 +16,8 @@ import
|
|||
lists, ropes, os, strutils, osproc, platform, condsyms, options, msgs,
|
||||
securehash, streams
|
||||
|
||||
from debuginfo import writeDebugInfo
|
||||
|
||||
type
|
||||
TSystemCC* = enum
|
||||
ccNone, ccGcc, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc,
|
||||
|
|
@ -736,6 +738,8 @@ proc callCCompiler*(projectfile: string) =
|
|||
if not noAbsolutePaths():
|
||||
if not exefile.isAbsolute():
|
||||
exefile = joinPath(splitFile(projectfile).dir, exefile)
|
||||
if optCDebug in gGlobalOptions:
|
||||
writeDebugInfo(exefile.changeFileExt("ndb"))
|
||||
exefile = quoteShell(exefile)
|
||||
let linkOptions = getLinkOptions() & " " &
|
||||
getConfigVar(cCompiler, ".options.linker")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue