Closed Zettexe closed 1 year ago
The example for Use as Library should be updated as follows to work on Zig 0.11
const sokol = @import("lib/sokol-zig/build.zig"); // ... // pub fn build(b: *std.build.Builder) void { // ... const sokol_build = sokol.buildSokol(b, target, optimize, .{}, "lib/sokol-zig/"); // ... // const exe = b.addExecutable("demo", "src/main.zig"); // ... exe.addAnonymousModule("sokol", .{ .source_file = .{ .path = "lib/sokol-zig/src/sokol/sokol.zig" } }); exe.linkLibrary(sokol_build);
exe.addPackagePath is now exe.addAnonymouseModule with a different input for the source file mode is now named optimize
exe.addPackagePath
exe.addAnonymouseModule
mode
optimize
Ok, fixed. Note though that those instruction will become obsolete once the package-branch is merged.
The example for Use as Library should be updated as follows to work on Zig 0.11
exe.addPackagePath
is nowexe.addAnonymouseModule
with a different input for the source filemode
is now namedoptimize