diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2024-03-06 23:56:57 -0500 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2024-03-06 23:56:57 -0500 |
| commit | 77c68660c467c4742bd1449bc1eddefb389723ca (patch) | |
| tree | e9737b8854fe5cfc31a6379ca1a14be4685b8d8e /build.zig | |
| parent | 0085d899650006679365a1d68dcb43650c297486 (diff) | |
not entirely sure
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ const raySdk = @import("raylib/src/build.zig"); // Although this function looks imperative, note that its job is to // declaratively construct a build graph that will be executed by an external // runner. -pub fn build(b: *std.Build) void { +pub fn build(b: *std.Build) !void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which // means any target is allowed, and the default is native. Other options @@ -26,7 +26,7 @@ pub fn build(b: *std.Build) void { .rshapes = b.option(bool, "rshapes", "Compile with shapes support") orelse defaults.rshapes, .raygui = b.option(bool, "raygui", "Compile with raygui support") orelse defaults.raygui, }; - const raylib = raySdk.addRaylib(b, target, optimize, options); + const raylib = try raySdk.addRaylib(b, target, optimize, options); const lib = b.addStaticLibrary(.{ .name = "zigdown", |
