git2go/Build_system_static.go

16 lines
337 B
Go
Raw Permalink Normal View History

//go:build static && system_libgit2
// +build static,system_libgit2
package git
/*
#cgo pkg-config: libgit2 --static
#cgo CFLAGS: -DLIBGIT2_STATIC
#include <git2.h>
2023-08-03 11:04:20 -05:00
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 7 || LIBGIT2_VER_MINOR > 7
# error "Invalid libgit2 version; this git2go supports libgit2 v1.7.x"
#endif
*/
import "C"