motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit d789c687172166fe599d6b4cec2993f25f75989e (tree)
parent 56f2e5c5bc3267fa6c54d8fbc2295c5fa2a21571
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 11 Jul 2022 16:41:41 -0700

zig_llvm: include Debug Info Version even for CodeView

I mistakenly thought this was supposed to only be present for Dwarf.

Diffstat:
Msrc/zig_llvm.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp @@ -1134,6 +1134,7 @@ void ZigLLVMAddModuleDebugInfoFlag(LLVMModuleRef module) { } void ZigLLVMAddModuleCodeViewFlag(LLVMModuleRef module) { + unwrap(module)->addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION); unwrap(module)->addModuleFlag(Module::Warning, "CodeView", 1); }