Skip to content

Commit

Permalink
Support manually build on linux-amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-pony committed Feb 13, 2025
1 parent b254d24 commit 1b5cb09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama/llama.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ package llama
#cgo linux,cann LDFLAGS: -lpthread -lrt -lresolv
#cgo cann CFLAGS: -DGGML_USE_CANN -DGGML_BUILD=1
#cgo cann CXXFLAGS: -DGGML_USE_CANN -DGGML_BUILD=1
#cgo cann LDFLAGS: -L${SRCDIR}/build/linux-arm64/runners/cann -lggml_cann -lascendc_kernels
#cgo arm64,cann LDFLAGS: -L${SRCDIR}/build/linux-arm64/runners/cann -lggml_cann -lascendc_kernels
#cgo amd64,cann LDFLAGS: -L${SRCDIR}/build/linux-amd64/runners/cann -lggml_cann -lascendc_kernels
#cgo windows CXXFLAGS: -D_WIN32_WINNT=0x602
#cgo windows LDFLAGS: -lmsvcrt -static-libstdc++ -static-libgcc -static
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/build/windows-amd64
Expand Down

0 comments on commit 1b5cb09

Please sign in to comment.