@@ -842,10 +842,10 @@ pub const LibExeObjStep = struct {
842842 lib_paths : ArrayList ([]const u8 ),
843843 disable_libc : bool ,
844844 frameworks : BufSet ,
845+ verbose_link : bool ,
845846
846847 // zig only stuff
847848 root_src : ? []const u8 ,
848- verbose : bool ,
849849 output_h_path : ? []const u8 ,
850850 out_h_filename : []const u8 ,
851851 assembly_files : ArrayList ([]const u8 ),
@@ -923,7 +923,7 @@ pub const LibExeObjStep = struct {
923923 var self = LibExeObjStep {
924924 .strip = false ,
925925 .builder = builder ,
926- .verbose = false ,
926+ .verbose_link = false ,
927927 .build_mode = builtin .Mode .Debug ,
928928 .static = static ,
929929 .kind = kind ,
@@ -988,7 +988,7 @@ pub const LibExeObjStep = struct {
988988 .linker_script = null ,
989989
990990 .root_src = undefined ,
991- .verbose = undefined ,
991+ .verbose_link = false ,
992992 .output_h_path = undefined ,
993993 .out_h_filename = undefined ,
994994 .assembly_files = undefined ,
@@ -1087,8 +1087,8 @@ pub const LibExeObjStep = struct {
10871087 %% self .source_files .append (file );
10881088 }
10891089
1090- pub fn setVerbose (self : & LibExeObjStep , value : bool ) {
1091- self .verbose = value ;
1090+ pub fn setVerboseLink (self : & LibExeObjStep , value : bool ) {
1091+ self .verbose_link = value ;
10921092 }
10931093
10941094 pub fn setBuildMode (self : & LibExeObjStep , mode : builtin.Mode ) {
@@ -1223,15 +1223,12 @@ pub const LibExeObjStep = struct {
12231223 %% zig_args .append (builder .pathFromRoot (asm_file ));
12241224 }
12251225
1226- if (self .verbose ) {
1227- %% zig_args .append ("--verbose" );
1228- }
12291226 if (builder .verbose_tokenize ) %% zig_args .append ("--verbose-tokenize" );
12301227 if (builder .verbose_ast ) %% zig_args .append ("--verbose-ast" );
12311228 if (builder .verbose_cimport ) %% zig_args .append ("--verbose-cimport" );
12321229 if (builder .verbose_ir ) %% zig_args .append ("--verbose-ir" );
12331230 if (builder .verbose_llvm_ir ) %% zig_args .append ("--verbose-llvm-ir" );
1234- if (builder .verbose_link ) %% zig_args .append ("--verbose-link" );
1231+ if (builder .verbose_link or self . verbose_link ) %% zig_args .append ("--verbose-link" );
12351232
12361233 if (self .strip ) {
12371234 %% zig_args .append ("--strip" );
0 commit comments