@@ -475,7 +475,7 @@ pub const ExecutableOptions = struct {
475475 root_source_file : ? LazyPath = null ,
476476 version : ? std.SemanticVersion = null ,
477477 target : CrossTarget = .{},
478- optimize : std.builtin.Mode = .Debug ,
478+ optimize : std.builtin.OptimizeMode = .Debug ,
479479 linkage : ? Step.Compile.Linkage = null ,
480480 max_rss : usize = 0 ,
481481 link_libc : ? bool = null ,
@@ -509,7 +509,7 @@ pub const ObjectOptions = struct {
509509 name : []const u8 ,
510510 root_source_file : ? LazyPath = null ,
511511 target : CrossTarget ,
512- optimize : std.builtin.Mode ,
512+ optimize : std.builtin.OptimizeMode ,
513513 max_rss : usize = 0 ,
514514 link_libc : ? bool = null ,
515515 single_threaded : ? bool = null ,
@@ -541,7 +541,7 @@ pub const SharedLibraryOptions = struct {
541541 root_source_file : ? LazyPath = null ,
542542 version : ? std.SemanticVersion = null ,
543543 target : CrossTarget ,
544- optimize : std.builtin.Mode ,
544+ optimize : std.builtin.OptimizeMode ,
545545 max_rss : usize = 0 ,
546546 link_libc : ? bool = null ,
547547 single_threaded : ? bool = null ,
@@ -574,7 +574,7 @@ pub const StaticLibraryOptions = struct {
574574 name : []const u8 ,
575575 root_source_file : ? LazyPath = null ,
576576 target : CrossTarget ,
577- optimize : std.builtin.Mode ,
577+ optimize : std.builtin.OptimizeMode ,
578578 version : ? std.SemanticVersion = null ,
579579 max_rss : usize = 0 ,
580580 link_libc : ? bool = null ,
@@ -608,7 +608,7 @@ pub const TestOptions = struct {
608608 name : []const u8 = "test" ,
609609 root_source_file : LazyPath ,
610610 target : CrossTarget = .{},
611- optimize : std.builtin.Mode = .Debug ,
611+ optimize : std.builtin.OptimizeMode = .Debug ,
612612 version : ? std.SemanticVersion = null ,
613613 max_rss : usize = 0 ,
614614 filter : ? []const u8 = null ,
@@ -644,7 +644,7 @@ pub const AssemblyOptions = struct {
644644 name : []const u8 ,
645645 source_file : LazyPath ,
646646 target : CrossTarget ,
647- optimize : std.builtin.Mode ,
647+ optimize : std.builtin.OptimizeMode ,
648648 max_rss : usize = 0 ,
649649 zig_lib_dir : ? LazyPath = null ,
650650};
@@ -1000,10 +1000,10 @@ pub fn step(self: *Build, name: []const u8, description: []const u8) *Step {
10001000}
10011001
10021002pub const StandardOptimizeOptionOptions = struct {
1003- preferred_optimize_mode : ? std.builtin.Mode = null ,
1003+ preferred_optimize_mode : ? std.builtin.OptimizeMode = null ,
10041004};
10051005
1006- pub fn standardOptimizeOption (self : * Build , options : StandardOptimizeOptionOptions ) std.builtin.Mode {
1006+ pub fn standardOptimizeOption (self : * Build , options : StandardOptimizeOptionOptions ) std.builtin.OptimizeMode {
10071007 if (options .preferred_optimize_mode ) | mode | {
10081008 if (self .option (bool , "release" , "optimize for end users" ) orelse false ) {
10091009 return mode ;
@@ -1012,7 +1012,7 @@ pub fn standardOptimizeOption(self: *Build, options: StandardOptimizeOptionOptio
10121012 }
10131013 } else {
10141014 return self .option (
1015- std .builtin .Mode ,
1015+ std .builtin .OptimizeMode ,
10161016 "optimize" ,
10171017 "Prioritize performance, safety, or binary size (-O flag)" ,
10181018 ) orelse .Debug ;
0 commit comments