Procházet zdrojové kódy

Merge pull request #5018 from maiconpintoabreu/fix-zig-wasm-win-mac

[Zig] Fix issue on zig build Emscripten run if no emsdk installed
pull/5019/head
Ray před 7 měsíci
odevzdal GitHub
rodič
revize
7f8dfc6c69
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: B5690EEEBB952194
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      build.zig

+ 1
- 1
build.zig Zobrazit soubor

@ -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 });
}

Načítá se…
Zrušit
Uložit