@@ -9,7 +9,7 @@ pub fn addAssetsOption(b: *std.Build, exe:anytype, assetpath:[]const u8) !void {
99 var files = std .ArrayList ([]const u8 ).init (b .allocator );
1010 defer files .deinit ();
1111
12- var buf : [std .fs .MAX_PATH_BYTES ]u8 = undefined ;
12+ var buf : [std .fs .max_path_bytes ]u8 = undefined ;
1313 const path = try std .fs .cwd ().realpath (assetpath , buf [0.. ]);
1414
1515 var dir = try std .fs .openDirAbsolute (path , .{.iterate = true });
@@ -24,7 +24,7 @@ pub fn addAssetsOption(b: *std.Build, exe:anytype, assetpath:[]const u8) !void {
2424 exe .step .dependOn (& options .step );
2525
2626 const assets = b .addModule ("assets" , .{
27- .root_source_file = options .getSource (),
27+ .root_source_file = options .getOutput (),
2828 .target = target ,
2929 .optimize = optimize ,
3030 });
@@ -109,9 +109,11 @@ fn addExample(b: *std.Build, comptime name: []const u8, flags: ?[]const []const
109109pub fn build (b : * std.Build ) ! void {
110110 const hosttarget = b .standardTargetOptions (.{});
111111 optimize = b .standardOptimizeOption (.{});
112- target = b .resolveTargetQuery (std .zig .CrossTarget .parse (
113- .{ .arch_os_abi = "wasm32-freestanding" },
114- ) catch unreachable );
112+
113+ target = b .resolveTargetQuery (.{
114+ .cpu_arch = .wasm32 ,
115+ .os_tag = .freestanding ,
116+ });
115117
116118 b .installFile ("src/index.html" , "index.html" );
117119 b .installFile ("src/pcm-processor.js" , "pcm-processor.js" );
0 commit comments