diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -415,7 +415,7 @@ pub fn build(b: *std.Build) void { /// pardes's highlighter; or, with no language, the patch view alone, with /// no tree-sitter in it. Its exports are abi/wasm.zig's (`memory`, /// `_initialize`, `reserve`, `release`, `patch`, and with a language -/// `highlight`), the same in every module; docs/typ/building.typ has their +/// `highlight` and `patchFile`), the same in every module; docs/typ/building.typ has their /// layouts and the WASI imports a page stubs. The package's dependency on /// pardes is named "pardes". A name the manifest does not have fails the /// configure, as `.languages` does. @@ -429,7 +429,7 @@ pub fn wasmModule(b: *std.Build, options: struct { else b.dependency("pardes", .{ .target = target, .optimize = options.optimize, .grammars = .none }); const exports = b.addOptions(); - exports.addOption(bool, "highlight", options.language != null); + exports.addOption(bool, "language", options.language != null); const module = b.addExecutable(.{ .name = b.fmt("pardes-{s}", .{options.language orelse "patch"}), .root_module = b.createModule(.{ @@ -445,7 +445,7 @@ pub fn wasmModule(b: *std.Build, options: struct { module.entry = .disabled; module.wasi_exec_model = .reactor; // Its own functions alone: tree-sitter's and libc's stay inside. - module.root_module.export_symbol_names = if (options.language != null) &.{ "reserve", "release", "patch", "highlight" } else &.{ "reserve", "release", "patch" }; + module.root_module.export_symbol_names = if (options.language != null) &.{ "reserve", "release", "patch", "highlight", "patchFile" } else &.{ "reserve", "release", "patch" }; return module; } |
