build: set CFLAGS=-O3 specifically for cpu.go

This commit is contained in:
Michael Yang
2025-01-30 13:17:17 -08:00
parent 548a9f56a6
commit 39fd89308c
2 changed files with 11 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
package cpu
// #cgo CFLAGS: -Wno-implicit-function-declaration
// #cgo CFLAGS: -O3 -Wno-implicit-function-declaration
// #cgo CXXFLAGS: -std=c++17
// #cgo CPPFLAGS: -I${SRCDIR}/amx -I${SRCDIR}/llamafile -I${SRCDIR}/.. -I${SRCDIR}/../../include
// #cgo CPPFLAGS: -DGGML_USE_LLAMAFILE