Skip to content

Commit

Permalink
add ability to specify version manually
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 26, 2024
1 parent 7aea5cf commit ca52633
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const version = getVersion(b);
const version: Version = if (b.option(
[]const u8,
"force-version",
"When building the SuperHTML CLI tool force a specific version, bypassing 'git describe'",
)) |v| .{ .commit = v } else getVersion(b);

const scripty = b.dependency("scripty", .{});
const superhtml = b.addModule("superhtml", .{
Expand Down

0 comments on commit ca52633

Please sign in to comment.