浏览代码

Fix issue on zig build emscripten run if the user has not installed emsdk

pull/5018/head
Maicon 3 个月前
父节点
当前提交
f1600a0c7e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      build.zig

+ 1
- 1
build.zig 查看文件

@ -60,7 +60,7 @@ fn emscriptenRunStep(b: *std.Build, emsdk: *std.Build.Dependency, examplePath: [
defer b.allocator.free(emrun_run_arg);
if (b.sysroot == null) {
emrun_run_arg = try std.fmt.bufPrint(emrun_run_arg, "{s}", .{emrunExe});
emrun_run_arg = try std.fmt.bufPrint(emrun_run_arg, "{s}" ++ std.fs.path.sep_str ++ "{s}", .{ emsdk.path("upstream/emscripten").getPath(b), emrunExe });
} else {
emrun_run_arg = try std.fmt.bufPrint(emrun_run_arg, "{s}" ++ std.fs.path.sep_str ++ "{s}", .{ dot_emsc_path, emrunExe });
}

正在加载...
取消
保存