File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ RM := rm -f
2121
2222ifeq ($(shell go env GOOS) ,linux)
2323 SUFFIX=so
24+ GIT_VERSION=$(shell git tag --sort=-v:refname --points-at $(shell git rev-list --tags --max-count=1 2>/dev/null) 2>/dev/null | head -n 1)
2425else ifeq ($(shell go env GOOS),windows)
2526 SUFFIX=dll
2627 RM=del
28+ GIT_VERSION=$(shell powershell -Command "git tag --sort=-v:refname --points-at $(git rev-list --tags --max-count=1) | Select-Object -First 1")
2729else
2830 SUFFIX=dylib
2931endif
3032
31- GIT_VERSION = $( shell git tag -l --points-at $( shell git rev-list --tags --max-count=1) --sort=-v:refname | head -n 1)
33+ GIT_VERSION ?= unknown
3234VERSION =$(subst go/adbc/,,$(GIT_VERSION ) )
3335
3436# Expand dynamically libadbc_driver_.SUFFIX
You can’t perform that action at this time.
0 commit comments