mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-12 10:48:39 +03:00
build: always emit-docs in system packaging mode
System packages are always going to want docs. This forces to true so a build error can appear if `pandoc` is unavailable.
This commit is contained in:
@ -141,6 +141,9 @@ pub fn build(b: *std.Build) !void {
|
||||
// If we are emitting any other artifacts then we default to false.
|
||||
if (emit_bench or emit_test_exe or emit_helpgen) break :emit_docs false;
|
||||
|
||||
// We always emit docs in system package mode.
|
||||
if (system_package) break :emit_docs true;
|
||||
|
||||
// We only default to true if we can find pandoc.
|
||||
const path = Command.expandPath(b.allocator, "pandoc") catch
|
||||
break :emit_docs false;
|
||||
|
Reference in New Issue
Block a user