This commit is contained in:
Nikita Smith
2025-09-17 16:01:07 -07:00
parent 17058e71bf
commit a060f581d9
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -32,6 +32,7 @@ global read_only LNK_CmdSwitch g_cmd_switch_map[] =
{ LNK_CmdSwitch_Dll, 0, "DLL", "", "" },
{ LNK_CmdSwitch_NotImplemented, 0, "DRIVER", "", "" },
{ LNK_CmdSwitch_DisallowLib, 1, "DISALLOWLIB", ":LIBRARY", "", },
{ LNK_CmdSwitch_D2, 0, "D2", "" },
{ LNK_CmdSwitch_EditAndContinue, 1, "EDITANDCONTINUE", "[:NO]", "" },
{ LNK_CmdSwitch_DynamicBase, 0, "DYNAMICBASE", "[:NO]", "" },
{ LNK_CmdSwitch_NotImplemented, 0, "EMITVOLATILEMETADATA", "", "" },
@@ -1286,6 +1287,10 @@ lnk_apply_cmd_option_to_config(LNK_Config *config, String8 cmd_name, String8List
lnk_error_cmd_switch(LNK_Error_Cmdl, obj, cmd_switch, "unsupported switch; binary dump is done by passing /DUMP to link.exe");
} break;
case LNK_CmdSwitch_D2: {
// not supported -- ignore
} break;
case LNK_CmdSwitch_Entry: {
String8 new_entry_point_name = {0};
lnk_cmd_switch_parse_string_copy(config->arena, obj, cmd_switch, value_strings, &new_entry_point_name);
+1
View File
@@ -45,6 +45,7 @@ typedef enum
LNK_CmdSwitch_Dll,
LNK_CmdSwitch_DynamicBase,
LNK_CmdSwitch_Dump,
LNK_CmdSwitch_D2,
LNK_CmdSwitch_Entry,
LNK_CmdSwitch_ErrorReport,
LNK_CmdSwitch_Export,