show an early warning for /DEBUG:FASTLINK

This commit is contained in:
Nikita Smith
2024-11-12 10:36:44 -08:00
parent 420c2ec208
commit 3a190ae2c3
2 changed files with 803 additions and 802 deletions
+1 -3
View File
@@ -4135,7 +4135,7 @@ l.count += 1; \
// TODO: Parallel debug info builds are currently blocked by the patch // TODO: Parallel debug info builds are currently blocked by the patch
// strings in $$FILE_CHECKSUM step in `lnk_process_c13_data_task`. // strings in $$FILE_CHECKSUM step in `lnk_process_c13_data_task`.
if (config->debug_mode == LNK_DebugMode_Full || config->debug_mode == LNK_DebugMode_GHash) { if (config->debug_mode == LNK_DebugMode_Full) {
lnk_timer_begin(LNK_Timer_Pdb); lnk_timer_begin(LNK_Timer_Pdb);
if (config->pdb_hash_type_names != LNK_TypeNameHashMode_Null && config->pdb_hash_type_names != LNK_TypeNameHashMode_None) { if (config->pdb_hash_type_names != LNK_TypeNameHashMode_Null && config->pdb_hash_type_names != LNK_TypeNameHashMode_None) {
@@ -4164,8 +4164,6 @@ l.count += 1; \
lnk_write_data_list_to_file_path(config->pdb_name, pdb_data); lnk_write_data_list_to_file_path(config->pdb_name, pdb_data);
lnk_timer_end(LNK_Timer_Pdb); lnk_timer_end(LNK_Timer_Pdb);
} else if (config->debug_mode == LNK_DebugMode_FastLink) {
lnk_not_implemented("FASTLINK");
} }
lnk_timer_end(LNK_Timer_Debug); lnk_timer_end(LNK_Timer_Debug);
+3
View File
@@ -1026,6 +1026,9 @@ lnk_config_from_cmd_line(Arena *arena, String8List raw_cmd_line)
if (debug_mode == LNK_DebugMode_GHash) { if (debug_mode == LNK_DebugMode_GHash) {
config->debug_mode = LNK_DebugMode_Full; config->debug_mode = LNK_DebugMode_Full;
lnk_error_cmd_switch(LNK_Warning_Cmdl, cmd_switch, "GHASH is not supported, switching to FULL"); lnk_error_cmd_switch(LNK_Warning_Cmdl, cmd_switch, "GHASH is not supported, switching to FULL");
} else if (debug_mode == LNK_DebugMode_FastLink) {
config->debug_mode = LNK_DebugMode_Full;
lnk_error_cmd_switch(LNK_Warning_Cmdl, cmd_switch, "FASTLINK is not supported, switching to FULL");
} else if (debug_mode != LNK_DebugMode_Null) { } else if (debug_mode != LNK_DebugMode_Null) {
config->debug_mode = debug_mode; config->debug_mode = debug_mode;
} else { } else {