Add win-debug setting to be able to pick dwarf for output #1855.

This commit is contained in:
Christoffer Lerno
2025-01-21 00:13:11 +01:00
parent ab32231cd1
commit 1a2dcd07ee
7 changed files with 34 additions and 1 deletions

View File

@@ -127,7 +127,8 @@ void gencontext_begin_module(GenContext *c)
if (c->panic_var) c->panic_var->backend_ref = NULL;
if (c->panicf) c->panicf->backend_ref = NULL;
bool is_win = compiler.build.arch_os_target == WINDOWS_X64 || compiler.build.arch_os_target == WINDOWS_AARCH64;
if (is_win)
bool is_codeview = compiler.build.feature.win_debug != WIN_DEBUG_DWARF && is_win;
if (is_codeview)
{
llvm_set_module_flag(c, LLVMModuleFlagBehaviorError, "CodeView", 1, type_uint);
}