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

@@ -3,6 +3,7 @@ package ggml
// #cgo CXXFLAGS: -std=c++17
// #cgo CPPFLAGS: -DNDEBUG -DGGML_USE_CPU
// #cgo CPPFLAGS: -I${SRCDIR}/../include -I${SRCDIR}/ggml-cpu
// #cgo windows CFLAGS: -Wno-dll-attribute-on-redeclaration
// #cgo windows LDFLAGS: -lmsvcrt -static -static-libgcc -static-libstdc++
// #include <stdlib.h>
// #include "ggml-backend.h"