File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,14 @@ pub const EmccFlags = std.StringHashMap(void);
8585
8686pub fn emccDefaultFlags (allocator : std.mem.Allocator , optimize : std.builtin.OptimizeMode ) EmccFlags {
8787 var args = EmccFlags .init (allocator );
88- if (optimize == .Debug ) {
89- args .put ("-Og" , {}) catch unreachable ;
90- args .put ("-gsource-map" , {}) catch unreachable ;
88+ switch (optimize ) {
89+ .Debug = > {
90+ args .put ("-gsource-map" , {}) catch unreachable ;
91+ },
92+ .ReleaseSmall , .ReleaseFast = > {
93+ args .put ("-O3" , {}) catch unreachable ;
94+ },
95+ else = > {},
9196 }
9297 return args ;
9398}
Original file line number Diff line number Diff line change 55 "build.zig" ,
66 "build.zig.zon" ,
77 "src" ,
8- "content" ,
98 "LICENSE" ,
109 "README.md" ,
1110 },
You can’t perform that action at this time.
0 commit comments