mirror of
https://github.com/CompeyDev/lei.git
synced 2024-12-12 04:40:42 +00:00
fix(build): don't hardcode go command in build script
This commit is contained in:
parent
2cd7e2cc45
commit
983b343315
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue