mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Add win-debug setting to be able to pick dwarf for output #1855.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user