From 9cbb4c3f85d26f371f853c157bff6d7db0b532d5 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 17 Jul 2017 08:24:34 +0200 Subject: [PATCH] fixes #5989 --- compiler/cgen.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 3797a92c23..a7a8015605 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -209,13 +209,13 @@ proc genLineDir(p: BProc, t: PNode) = if ({optStackTrace, optEndb} * p.options == {optStackTrace, optEndb}) and (p.prc == nil or sfPure notin p.prc.flags): if freshLineInfo(p, tt.info): - linefmt(p, cpsStmts, "#endb($1, $2);$n", + linefmt(p, cpsStmts, "#endb($1, $2);$N", line.rope, makeCString(toFilename(tt.info))) elif ({optLineTrace, optStackTrace} * p.options == {optLineTrace, optStackTrace}) and (p.prc == nil or sfPure notin p.prc.flags) and tt.info.fileIndex >= 0: if freshLineInfo(p, tt.info): - linefmt(p, cpsStmts, "nimln_($1, $2);$n", + linefmt(p, cpsStmts, "nimln_($1, $2);$N", line.rope, tt.info.quotedFilename) proc postStmtActions(p: BProc) {.inline.} =