diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -10,7 +10,6 @@ const process_build = @import("build/process.zig"); /// The package manifest, imported untyped (build/core.zig has the reason). const zon = @import("build.zig.zon"); - pub const Platform = enum { tui, gui, macos }; pub const PerfBuild = struct { @@ -34,11 +33,16 @@ pub const macos_min_version: std.SemanticVersion = .{ .major = 13, .minor = 0, . pub const TreeSitterGrammars = enum { disabled, zig, minimal, full }; - pub fn build(b: *std.Build) void { // A package that depends on pardes takes its library; nothing of the // editor is configured for it. if (!b.isRoot()) return @import("build/library.zig").build(b); + // This configure reads the environment (HOME, XDG_DATA_HOME, + // HX_HARNESS), the clock (-Dtest-rebuild) and vendor/themes and + // vendor/queries without telling the configure cache, so it is never + // cached (REORG decision 20; typst's lookup did this before it moved to + // make time). + b.graph.poisonCache(); const requested_platform = b.option(Platform, "platform", "which shell to build (tui, gui, macos); absent builds the tui cli and the SDL gui together"); const platform = requested_platform orelse .tui; const also_gui = requested_platform == null; |
