瀏覽代碼

zig: run examples from their directories (#4063)

So that they can find their respective resource folders.
pull/4074/head
Mike Will 9 月之前
committed by GitHub
父節點
當前提交
81ff879b04
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      examples/build.zig

+ 1
- 0
examples/build.zig 查看文件

@ -75,6 +75,7 @@ fn add_module(comptime module: []const u8, b: *std.Build, target: std.Build.Reso
const install_cmd = b.addInstallArtifact(exe, .{});
const run_cmd = b.addRunArtifact(exe);
run_cmd.cwd = b.path(module);
run_cmd.step.dependOn(&install_cmd.step);
const run_step = b.step(name, name);

Loading…
取消
儲存