Skip to content

Commit 36d30f9

Browse files
author
Alessio Treglia
authored
reintroduce rule to cross-build a linux binary (#7334)
closes: #7333
1 parent 62b4aa9 commit 36d30f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ simd:
9090
mkdir -p $(BUILDDIR)
9191
go build -mod=readonly $(BUILD_FLAGS) -o $(BUILDDIR) ./simapp/simd
9292

93+
simd-linux: go.sum
94+
$(MAKE) simd GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false
95+
9396
build-simd-all: go.sum
9497
$(if $(shell docker inspect -f '{{ .Id }}' cosmossdk/rbuilder 2>/dev/null),$(info found image cosmossdk/rbuilder),docker pull cosmossdk/rbuilder:latest)
9598
docker rm latest-build || true
@@ -433,7 +436,7 @@ proto-update-deps:
433436
###############################################################################
434437

435438
# Run a 4-node testnet locally
436-
localnet-start: build-simd-linux localnet-stop
439+
localnet-start: $(BUILDDIR)/simd localnet-stop
437440
$(if $(shell docker inspect -f '{{ .Id }}' cosmossdk/simd-env 2>/dev/null),$(info found image cosmossdk/simd-env),$(MAKE) -C contrib/images simd-env)
438441
if ! [ -f build/node0/simd/config/genesis.json ]; then docker run --rm \
439442
--user $(shell id -u):$(shell id -g) \

0 commit comments

Comments
 (0)