From 7c086f6b8eaae7a9009f2aab02efc070b99456ef Mon Sep 17 00:00:00 2001 From: nicejs-is-cool Date: Tue, 2 Jun 2026 09:09:51 -0300 Subject: [PATCH] update readme yayayay --- build.zig | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/build.zig b/build.zig index f417127..74e784d 100644 --- a/build.zig +++ b/build.zig @@ -17,10 +17,9 @@ fn addEngineSources(b: *std.Build, opts: LibBuildOpts) *std.Build.Module { .strip = if (opts.optimize == .Debug) false else true, .unwind_tables = if (opts.optimize == .Debug) null else .none, .pic = true, - .sanitize_c = if(strict) .full else null, + .sanitize_c = if (strict) .full else null, }); - dataMod.addCSourceFiles(.{ .files = &[_][]const u8{ "src/neonucleus.c", @@ -62,7 +61,7 @@ fn compileRaylib(b: *std.Build, os: std.Target.Os.Tag, buildOpts: LibBuildOpts, // passing it breaks it for some reason? // TODO: make it not break - const raylib = b.addSystemCommand(&.{ "zig", "build"}); + const raylib = b.addSystemCommand(&.{ "zig", "build" }); raylib.setCwd(b.path("foreign/raylib/")); raylib.stdio = .inherit; @@ -89,11 +88,7 @@ fn compileTheRightLua(b: *std.Build, target: std.Build.ResolvedTarget, version: // its a static library because COFF is a pile of shit const c = b.addLibrary(.{ .name = "lua", - .root_module = b.addModule("luamod", .{ - .link_libc = true, - .optimize = .ReleaseFast, - .target = target, - }), + .root_module = b.addModule("luamod", .{ .link_libc = true, .optimize = .ReleaseFast, .target = target, .pic = true }), .linkage = .static, });