File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ const std = @import("std");
3
3
pub fn build (b : * std.Build ) ! void {
4
4
const exe = b .addExecutable (.{
5
5
.name = "cart" ,
6
- .root_source_file = b .path ("src/main.zig" ),
7
- .target = b .resolveTargetQuery (.{
8
- .cpu_arch = .wasm32 ,
9
- .os_tag = .freestanding ,
6
+ .root_module = b .createModule (.{
7
+ .root_source_file = b .path ("src/main.zig" ),
8
+ .target = b .resolveTargetQuery (.{
9
+ .cpu_arch = .wasm32 ,
10
+ .os_tag = .freestanding ,
11
+ }),
12
+ .optimize = b .standardOptimizeOption (.{
13
+ .preferred_optimize_mode = .ReleaseSmall ,
14
+ }),
10
15
}),
11
- .optimize = b .standardOptimizeOption (.{}),
12
16
});
13
17
14
18
exe .entry = .disabled ;
Original file line number Diff line number Diff line change
1
+ .{
2
+ .name = .cart ,
3
+ .version = "0.0.1" ,
4
+ .fingerprint = 0xba388b76e32853e ,
5
+ .minimum_zig_version = "0.15.0-dev.1283+1fcaf90dd" ,
6
+ .dependencies = .{},
7
+ .paths = .{
8
+ "build.zig" ,
9
+ "build.zig.zon" ,
10
+ "src" ,
11
+ "README.md" ,
12
+ //"LICENSE",
13
+ },
14
+ }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const HELP = {
82
82
} ,
83
83
zig : {
84
84
name : 'Zig' ,
85
- build : 'zig build -Doptimize=ReleaseSmall ' ,
85
+ build : 'zig build --release=small ' ,
86
86
cart : 'zig-out/bin/cart.wasm' ,
87
87
}
88
88
} ;
You can’t perform that action at this time.
0 commit comments