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);
85
85
86
86
pub fn emccDefaultFlags (allocator : std.mem.Allocator , optimize : std.builtin.OptimizeMode ) EmccFlags {
87
87
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 = > {},
91
96
}
92
97
return args ;
93
98
}
Original file line number Diff line number Diff line change 5
5
"build.zig" ,
6
6
"build.zig.zon" ,
7
7
"src" ,
8
- "content" ,
9
8
"LICENSE" ,
10
9
"README.md" ,
11
10
},
You can’t perform that action at this time.
0 commit comments