mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-03 08:41:33 +02:00
Makefile: rename variable to ACTIVE_GO_VERSION
Renamed the Makefile variable `GO_VERSION` to `ACTIVE_GO_VERSION` for improved clarity. This change also frees up the name `GO_VERSION` to be used for defining the global Go version for reproducible binaries in a subsequent commit.
This commit is contained in:
7
Makefile
7
Makefile
@@ -23,11 +23,12 @@ ANDROID_BUILD := $(ANDROID_BUILD_DIR)/Lndmobile.aar
|
|||||||
|
|
||||||
COMMIT := $(shell git describe --tags --dirty)
|
COMMIT := $(shell git describe --tags --dirty)
|
||||||
|
|
||||||
GO_VERSION := $(shell go version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
|
# Determine the minor version of the active Go installation.
|
||||||
GO_VERSION_MINOR := $(shell echo $(GO_VERSION) | cut -d. -f2)
|
ACTIVE_GO_VERSION := $(shell go version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
|
||||||
|
ACTIVE_GO_VERSION_MINOR := $(shell echo $(ACTIVE_GO_VERSION) | cut -d. -f2)
|
||||||
|
|
||||||
LOOPVARFIX :=
|
LOOPVARFIX :=
|
||||||
ifeq ($(shell expr $(GO_VERSION_MINOR) \>= 21), 1)
|
ifeq ($(shell expr $(ACTIVE_GO_VERSION_MINOR) \>= 21), 1)
|
||||||
LOOPVARFIX := GOEXPERIMENT=loopvar
|
LOOPVARFIX := GOEXPERIMENT=loopvar
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user