Commit 86eb183668

Andrew Kelley <superjoe30@gmail.com>
2017-09-19 04:05:55
coff linking passes -DEBUG
which makes a .pdb file
1 parent 46ddeb0
Changed files (1)
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) {