Browse Source

Fix show-timings header for -lld on windows

gingerBill 4 years ago
parent
commit
6421152104
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main.cpp

+ 5 - 1
src/main.cpp

@@ -178,7 +178,11 @@ i32 linker_stage(lbGenerator *gen) {
 		build_context.keep_object_files = true;
 	} else {
 	#if defined(GB_SYSTEM_WINDOWS)
-		timings_start_section(timings, str_lit("msvc-link"));
+		String section_name = str_lit("msvc-link");
+		if (build_context.use_lld) {
+			section_name = str_lit("lld-link");
+		}
+		timings_start_section(timings, section_name);
 
 		gbString lib_str = gb_string_make(heap_allocator(), "");
 		defer (gb_string_free(lib_str));