We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fd3ed commit f6665faCopy full SHA for f6665fa
build.zig
@@ -1,6 +1,6 @@
1
const std = @import("std");
2
3
-pub fn build(b: *std.Build) void {
+pub fn build(b: *std.Build) !void {
4
const target = b.standardTargetOptions(.{});
5
6
const optimize = b.standardOptimizeOption(.{});
@@ -15,6 +15,12 @@ pub fn build(b: *std.Build) void {
15
16
b.installArtifact(lib);
17
18
+ const module = b.createModule(.{
19
+ .source_file = .{ .path = "src/main.zig" },
20
+ });
21
+
22
+ try b.modules.put(b.dupe("wasm"), module);
23
24
var main_tests = b.addTest(.{
25
.root_source_file = .{ .path = "src/main.zig" },
26
.target = target,
0 commit comments