mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +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)
|
||||
|
||||
GO_VERSION := $(shell go version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
|
||||
GO_VERSION_MINOR := $(shell echo $(GO_VERSION) | cut -d. -f2)
|
||||
# Determine the minor version of the active Go installation.
|
||||
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 :=
|
||||
ifeq ($(shell expr $(GO_VERSION_MINOR) \>= 21), 1)
|
||||
ifeq ($(shell expr $(ACTIVE_GO_VERSION_MINOR) \>= 21), 1)
|
||||
LOOPVARFIX := GOEXPERIMENT=loopvar
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user