Skip to content

Commit

Permalink
build(taskfile): add arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwindy committed Dec 17, 2023
1 parent f6c3e29 commit cec5f63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Taskfile.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ tasks:
cmds:
- go install {{.GOFLAGS}} .

arm:
desc: Build targeting Linux arm64.
cmds:
- go install {{.GOFLAGS}} .
env:
GOOS: linux
GOARCH: arm64
CC: aarch64-linux-gcc

windows:
desc: Build with MinGW, targeting Windows x64.
cmds:
Expand Down
2 changes: 1 addition & 1 deletion lib/readline/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Readline(L *lua.LState) int {
func AddHistory(L *lua.LState) int {
content := L.CheckString(1)
if err := readline.AddHistory(content); err != nil {
L.RaiseError("readline addhistory: %v", err)
L.RaiseError("readline add_history: %v", err)
}
return 0
}

0 comments on commit cec5f63

Please sign in to comment.