mirror of
https://github.com/CompeyDev/lei.git
synced 2024-12-12 04:40:42 +00:00
fix(build): handle args order properly
This commit is contained in:
parent
1ab459e2f9
commit
0884e8d7c0
1 changed files with 4 additions and 1 deletions
|
@ -76,8 +76,11 @@ func main() {
|
|||
buildTags = append(buildTags, []string{"-tags", strings.Join(features, ",")}...)
|
||||
}
|
||||
|
||||
subcommand := goArgs[0]
|
||||
goArgs = goArgs[1:]
|
||||
combinedArgs := append(buildTags, goArgs...)
|
||||
cmd, _, _, _ := Command("go").
|
||||
WithArgs(append(buildTags, goArgs...)...).
|
||||
WithArgs(append([]string{subcommand}, combinedArgs...)...).
|
||||
WithVar(
|
||||
"CGO_LDFLAGS",
|
||||
fmt.Sprintf("-L %s -lLuau.VM -lm -lstdc++", artifactDir),
|
||||
|
|
Loading…
Reference in a new issue