From 983b3433151dd992d359f841dd0bd638dbf79050 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 18 Jul 2024 17:57:44 +0530 Subject: [PATCH] fix(build): don't hardcode go command in build script --- build/build.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/build.go b/build/build.go index fe150a7..3a1e15a 100644 --- a/build/build.go +++ b/build/build.go @@ -71,13 +71,13 @@ func main() { buildVm(artifactPath, cmakeFlags...) } - buildArgs := []string{"build"} + buildTags := []string{} if len(features) > 0 { - buildArgs = append(buildArgs, []string{"-tags", strings.Join(features, ",")}...) + buildTags = append(buildTags, []string{"-tags", strings.Join(features, ",")}...) } cmd, _, _, _ := Command("go"). - WithArgs(append(buildArgs, goArgs...)...). + WithArgs(append(buildTags, goArgs...)...). WithVar( "CGO_LDFLAGS", fmt.Sprintf("-L %s -lLuau.VM -lm -lstdc++", artifactDir),