From 14f597d3912bc7e4b2383685b6a14ee5467edac0 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 12 May 2022 16:44:42 +0300 Subject: [PATCH] pass NetworkBundle through ldflags --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 73e7dda40..2f729447d 100644 --- a/Makefile +++ b/Makefile @@ -71,15 +71,19 @@ debug: GOFLAGS+=-tags=debug debug: build-devnets 2k: GOFLAGS+=-tags=2k +2k: GOFLAGS+=-ldflags=-X=github.com/filecoin-project/lotus/build.NetworkBundle=devnet 2k: build-devnets calibnet: GOFLAGS+=-tags=calibnet +calibnet: GOFLAGS+=-ldflags=-X=github.com/filecoin-project/lotus/build.NetworkBundle=calibrationnet calibnet: build-devnets butterflynet: GOFLAGS+=-tags=butterflynet +butterflynet: GOFLAGS+=-ldflags=-X=github.com/filecoin-project/lotus/build.NetworkBundle=butterflynet butterflynet: build-devnets interopnet: GOFLAGS+=-tags=interopnet +interopnet: GOFLAGS+=-ldflags=-X=github.com/filecoin-project/lotus/build.NetworkBundle=caterpillarnet interopnet: build-devnets lotus: $(BUILD_DEPS)