From 36d30f9e83e53d85f12b0c6ed83be3c16df59c12 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 17 Sep 2020 10:08:20 +0100 Subject: [PATCH] reintroduce rule to cross-build a linux binary (#7334) closes: #7333 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60b2aee1fc..fa9805b1a1 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,9 @@ simd: mkdir -p $(BUILDDIR) go build -mod=readonly $(BUILD_FLAGS) -o $(BUILDDIR) ./simapp/simd +simd-linux: go.sum + $(MAKE) simd GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false + build-simd-all: go.sum $(if $(shell docker inspect -f '{{ .Id }}' cosmossdk/rbuilder 2>/dev/null),$(info found image cosmossdk/rbuilder),docker pull cosmossdk/rbuilder:latest) docker rm latest-build || true @@ -433,7 +436,7 @@ proto-update-deps: ############################################################################### # Run a 4-node testnet locally -localnet-start: build-simd-linux localnet-stop +localnet-start: $(BUILDDIR)/simd localnet-stop $(if $(shell docker inspect -f '{{ .Id }}' cosmossdk/simd-env 2>/dev/null),$(info found image cosmossdk/simd-env),$(MAKE) -C contrib/images simd-env) if ! [ -f build/node0/simd/config/genesis.json ]; then docker run --rm \ --user $(shell id -u):$(shell id -g) \