From 86eb1836682cecea199748842767cf2d9cc2ea62 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 18 Sep 2017 22:05:55 -0400 Subject: [PATCH] coff linking passes -DEBUG which makes a .pdb file --- src/link.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/link.cpp b/src/link.cpp index 9a26139e5..0ee0b49d0 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -348,6 +348,10 @@ static void construct_linker_job_coff(LinkJob *lj) { lj->args.append("-NOLOGO"); + if (!g->strip_debug_symbols) { + lj->args.append("-DEBUG"); + } + coff_append_machine_arg(g, &lj->args); if (g->windows_subsystem_windows) {