all: fix cgo compiler warnings on windows (#10563)

This commit is contained in:
Jeffrey Morgan
2025-05-05 08:02:39 -07:00
committed by GitHub
parent 7e5c8eee5c
commit 913905028b
4 changed files with 8 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ package llama
/*
#cgo CFLAGS: -std=c11
#cgo windows CFLAGS: -Wno-dll-attribute-on-redeclaration
#cgo CXXFLAGS: -std=c++17
#cgo CPPFLAGS: -I${SRCDIR}/llama.cpp/include
#cgo CPPFLAGS: -I${SRCDIR}/llama.cpp/common