From e7fa254387e450154f03b2d1bdef361a0adb80d1 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 24 Apr 2026 17:40:33 +0200 Subject: perf(lexer): do not alloc --- go/build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/build.zig') diff --git a/go/build.zig b/go/build.zig index 7cce475..6517786 100644 --- a/go/build.zig +++ b/go/build.zig @@ -25,7 +25,7 @@ pub fn build(b: *std.Build) !void { try flags.appendSlice(b.allocator, "-linkmode external -extldflags -static"); if (optimize != .Debug) try flags.appendSlice(b.allocator, " -s"); const go_build = b.addSystemCommand(&[_][]const u8{ - "go", "build", + "go", "build", "-ldflags", flags.items, ".", }); @@ -35,7 +35,7 @@ pub fn build(b: *std.Build) !void { test_step.dependOn(b.getInstallStep()); const race = b.option(bool, "race", "Run tests with -race") orelse false; const go_test = b.addSystemCommand(&[_][]const u8{ - "go", "test", + "go", "test", "-ldflags", flags.items, "-v", }); -- cgit v1.2.3