diff options
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 5889ba316a..03fa976b2e 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4992,7 +4992,11 @@ static void init(CodeGen *g) { LLVMSetTarget(g->module, buf_ptr(&g->triple_str)); - ZigLLVMAddModuleDebugInfoFlag(g->module); + if (g->zig_target.oformat == ZigLLVM_COFF) { + ZigLLVMAddModuleCodeViewFlag(g->module); + } else { + ZigLLVMAddModuleDebugInfoFlag(g->module); + } LLVMTargetRef target_ref; char *err_msg = nullptr; |
