File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,19 @@ 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)
2524else ifeq ($(shell go env GOOS),windows)
2625 SUFFIX=dll
2726 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")
2927else
3028 SUFFIX=dylib
3129endif
3230
31+ ifeq ($(shell go env GOOS) ,windows)
32+ GIT_VERSION=$(shell powershell -Command "git tag --sort=-v:refname --points-at $(git rev-list --tags --max-count=1) | Select-Object -First 1")
33+ else
34+ 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)
35+ endif
36+
3337GIT_VERSION ?= unknown
3438VERSION =$(subst go/adbc/,,$(GIT_VERSION ) )
3539
You can’t perform that action at this time.
0 commit comments