From f028213c1135f05dfd324edcfaacf57eef2d0b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C5=9Een?= Date: Thu, 27 Aug 2026 07:16:22 +0200 Subject: [PATCH] build: update build configuration and test ROM dependencies --- build.zig | 15 +++++---------- build.zig.zon | 2 -- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/build.zig b/build.zig index 3bed062..0ae0e75 100644 --- a/build.zig +++ b/build.zig @@ -85,16 +85,11 @@ pub fn build(b: *std.Build) void { const test_step = b.step("test", "Run 6soz tests"); const test_options = b.addOptions(); - if (b.lazyDependency("nes_test_roms", .{})) |roms_dep| { - test_options.addOption(?[]const u8, "nes_test_roms_dir", roms_dep.path("").getPath(b)); - } else { - test_options.addOption(?[]const u8, "nes_test_roms_dir", null); - } - if (b.lazyDependency("m6502_functional_tests", .{})) |func_dep| { - test_options.addOption(?[]const u8, "m6502_functional_tests_dir", func_dep.path("").getPath(b)); - } else { - test_options.addOption(?[]const u8, "m6502_functional_tests_dir", null); - } + const roms_dep = b.dependency("nes_test_roms", .{}); + test_options.addOption(?[]const u8, "nes_test_roms_dir", roms_dep.path("").getPath(b)); + + const func_dep = b.dependency("m6502_functional_tests", .{}); + test_options.addOption(?[]const u8, "m6502_functional_tests_dir", func_dep.path("").getPath(b)); const options_mod = test_options.createModule(); diff --git a/build.zig.zon b/build.zig.zon index a244bc6..71b1c0f 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -6,12 +6,10 @@ .nes_test_roms = .{ .url = "https://github.com/christopherpow/nes-test-roms/archive/refs/heads/master.tar.gz", .hash = "N-V-__8AANPxaAENPnXYuDVuqgUcOdrux1zKqz8bZZYf0RA2", - .lazy = true, }, .m6502_functional_tests = .{ .url = "https://github.com/Klaus2m5/6502_65C02_functional_tests/archive/refs/heads/master.tar.gz", .hash = "N-V-__8AAKmLHACkwIMCMRdqnsyLtL5hbQdi8cm3nGs8n-O7", - .lazy = true, }, .raylib = .{ .url = "https://github.com/raysan5/raylib/archive/refs/heads/master.tar.gz",