fixes extccomp regressions

This commit is contained in:
Araq 2018-12-06 21:39:27 +01:00
commit 77272ceb3c

View file

@ -683,11 +683,11 @@ proc getLinkCmd(conf: ConfigRef; projectfile: AbsoluteFile, objfiles: string; ba
builddll = "" builddll = ""
if not conf.outFile.isEmpty: if not conf.outFile.isEmpty:
exefile = conf.outFile.string.expandTilde exefile = conf.outFile.string.expandTilde
if not exefile.isAbsolute():
exefile = base.string / exefile
if not noAbsolutePaths(conf): if not noAbsolutePaths(conf):
if not exefile.isAbsolute(): if not exefile.isAbsolute():
exefile = string(splitFile(projectfile).dir / RelativeFile(exefile)) exefile = string(splitFile(projectfile).dir / RelativeFile(exefile))
if not exefile.isAbsolute():
exefile = base.string / exefile
when false: when false:
if optCDebug in conf.globalOptions: if optCDebug in conf.globalOptions:
writeDebugInfo(exefile.changeFileExt("ndb")) writeDebugInfo(exefile.changeFileExt("ndb"))