ignore invalid type index errors in release

This commit is contained in:
Nikita Smith
2026-04-06 12:04:32 -07:00
parent c853082e61
commit 99335959b0
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -195,8 +195,9 @@ lnk_make_default_cmd_line(Arena *arena, LNK_CmdLine user_cmd_line)
}
#endif
// in release build ignore unknown switches
lnk_cmd_line_push_optionf(arena, &cmd_line, LNK_CmdSwitch_Rad_Ignore, "%d", LNK_Warning_UnknownSwitch * (BUILD_DEBUG * -1));
// 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_Error_InvalidTypeIndex * (BUILD_DEBUG * -1));
return cmd_line;
}
+1 -1
View File
@@ -4636,7 +4636,7 @@ T_BeginTest(cyclic_type)
T_Ok(t_write_entry_obj());
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};
t_invoke_(t_radlink_path(), cmd_line, max_U64, scratch.arena, &output);
T_Ok(g_last_exit_code == 0);