From 8cc975328588b076791915926a2e7e6dfab0d3d0 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 5 Jun 2019 16:26:11 +0200 Subject: [PATCH] fixes #11405 --- compiler/extccomp.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 1ec7e68683..0c3bfba301 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -775,6 +775,8 @@ proc getLinkCmd(conf: ConfigRef; output: AbsoluteFile, let t = now() let pdb = output.string & "." & format(t, "MMMM-yyyy-HH-mm-") & $t.nanosecond & ".pdb" result.add " /link /PDB:" & pdb + if optCDebug in conf.globalOptions and conf.cCompiler == ccVcc: + result.add " /Zi /FS /Od" template getLinkCmd(conf: ConfigRef; output: AbsoluteFile, objfiles: string): string = getLinkCmd(conf, output, objfiles, optGenDynLib in conf.globalOptions)