mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-16 09:34:40 +00:00
move "go-checks" to nimbus-build-system [skip ci]
This commit is contained in:
parent
595d21ab41
commit
94ade77c99
12
Makefile
12
Makefile
@ -15,7 +15,7 @@ TOOLS := beacon_node bench_bls_sig_agggregation state_sim
|
||||
TOOLS_DIRS := beacon_chain benchmarks research
|
||||
TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))
|
||||
|
||||
.PHONY: all build-system-checks deps update go-checks p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean
|
||||
.PHONY: all build-system-checks deps update p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean
|
||||
|
||||
all: | build-system-checks $(TOOLS)
|
||||
|
||||
@ -42,16 +42,6 @@ update: | update-common
|
||||
beacon_chain.nims:
|
||||
ln -s beacon_chain.nimble $@
|
||||
|
||||
MIN_GO_VER := 1.12
|
||||
DISABLE_GO_CHECKS := 0
|
||||
go-checks:
|
||||
ifeq ($(DISABLE_GO_CHECKS), 0)
|
||||
which go &>/dev/null || { echo "Go compiler not installed. Aborting."; exit 1; }
|
||||
GO_VER="$$(go version | sed -E 's/^.*go([0-9.]+).*$$/\1/')"; \
|
||||
[[ $$(echo -e "$${GO_VER}\n$(MIN_GO_VER)" | sort -t '.' -k 1,1 -k 2,2 -g | head -n 1) == "$(MIN_GO_VER)" ]] || \
|
||||
{ echo "Minimum Go compiler version required: $(MIN_GO_VER). Version available: $$GO_VER. Aborting."; exit 1; }
|
||||
endif
|
||||
|
||||
P2PD_CACHE :=
|
||||
p2pd: | go-checks
|
||||
BUILD_MSG="$(BUILD_MSG) $@" \
|
||||
|
2
vendor/nimbus-build-system
vendored
2
vendor/nimbus-build-system
vendored
@ -1 +1 @@
|
||||
Subproject commit 178ded44a307a479e77e4dafacddc594fff8ba4c
|
||||
Subproject commit 6c375c3474a1d5089ac7e7f00f38e535025984b5
|
Loading…
x
Reference in New Issue
Block a user