aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-24 17:40:33 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-24 17:40:33 +0200
commite7fa254387e450154f03b2d1bdef361a0adb80d1 (patch)
treefd655516c0f1e3d4925ede5d54d729a88507369b /go
parent263190b15ebcb1188df6fbc2bc90dca6e4ea5d8d (diff)
perf(lexer): do not alloc
Diffstat (limited to 'go')
-rw-r--r--go/build.zig4
1 files changed, 2 insertions, 2 deletions
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",
});