diff options
Diffstat (limited to 'Build_system_static.go')
| -rw-r--r-- | Build_system_static.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build_system_static.go b/Build_system_static.go index c1a8292..309369d 100644 --- a/Build_system_static.go +++ b/Build_system_static.go @@ -1,3 +1,4 @@ +//go:build static && system_libgit2 // +build static,system_libgit2 package git @@ -7,8 +8,8 @@ package git #cgo CFLAGS: -DLIBGIT2_STATIC #include <git2.h> -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2 -# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 2 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0" #endif */ import "C" |
