mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
ignore invalid type index errors in release
This commit is contained in:
+2
-1
@@ -195,8 +195,9 @@ lnk_make_default_cmd_line(Arena *arena, LNK_CmdLine user_cmd_line)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// in release build ignore unknown switches
|
// errors that are too verbose in release build
|
||||||
lnk_cmd_line_push_optionf(arena, &cmd_line, LNK_CmdSwitch_Rad_Ignore, "%d", LNK_Warning_UnknownSwitch * (BUILD_DEBUG * -1));
|
lnk_cmd_line_push_optionf(arena, &cmd_line, LNK_CmdSwitch_Rad_Ignore, "%d", LNK_Warning_UnknownSwitch * (BUILD_DEBUG * -1));
|
||||||
|
lnk_cmd_line_push_optionf(arena, &cmd_line, LNK_CmdSwitch_Rad_Ignore, "%d", LNK_Error_InvalidTypeIndex * (BUILD_DEBUG * -1));
|
||||||
|
|
||||||
return cmd_line;
|
return cmd_line;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4636,7 +4636,7 @@ T_BeginTest(cyclic_type)
|
|||||||
T_Ok(t_write_entry_obj());
|
T_Ok(t_write_entry_obj());
|
||||||
T_Ok(t_write_file(str8_lit("cycle.obj"), raw_coff));
|
T_Ok(t_write_file(str8_lit("cycle.obj"), raw_coff));
|
||||||
|
|
||||||
String8 cmd_line = str8_lit("/subsystem:console /entry:entry /out:a.exe /debug:full cycle.obj entry.obj");
|
String8 cmd_line = str8f(scratch.arena, "/subsystem:console /entry:entry /out:a.exe /debug:full /rad_ignore:-%u cycle.obj entry.obj", LNK_Error_InvalidTypeIndex);
|
||||||
String8 output = {0};
|
String8 output = {0};
|
||||||
t_invoke_(t_radlink_path(), cmd_line, max_U64, scratch.arena, &output);
|
t_invoke_(t_radlink_path(), cmd_line, max_U64, scratch.arena, &output);
|
||||||
T_Ok(g_last_exit_code == 0);
|
T_Ok(g_last_exit_code == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user