Skip to content

Commit

Permalink
fix make calibnet (#285)
Browse files Browse the repository at this point in the history
* fix make calibnet

* fix darwin build

* correct build tag on 2k
  • Loading branch information
magik6k authored Oct 17, 2024
1 parent 2d9d7df commit a89ea54
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ deps: $(BUILD_DEPS)

## ldflags -s -w strips binary

curio: GOFLAGS+=-tags=cunative
CURIO_TAGS := cunative

curio: $(BUILD_DEPS)
rm -f curio
GOAMD64=v3 CGO_LDFLAGS_ALLOW=$(CGO_LDFLAGS_ALLOW) $(GOCC) build $(GOFLAGS) -o curio -ldflags " -s -w \
GOAMD64=v3 CGO_LDFLAGS_ALLOW=$(CGO_LDFLAGS_ALLOW) $(GOCC) build $(GOFLAGS) \
-tags "$(CURIO_TAGS)" \
-o curio -ldflags " -s -w \
-X github.com/filecoin-project/curio/build.IsOpencl=$(FFI_USE_OPENCL) \
-X github.com/filecoin-project/curio/build.CurrentCommit=+git_`git log -1 --format=%h_%cI`" \
./cmd/curio
Expand All @@ -102,12 +105,14 @@ batchdep: build/.supraseal-install
batchdep: $(BUILD_DEPS)
,PHONY: batchdep

batch: GOFLAGS+=-tags=supraseal
batch: CURIO_TAGS+= supraseal
batch: CGO_LDFLAGS_ALLOW='.*'
batch: batchdep build
.PHONY: batch

batch-calibnet: GOFLAGS+=-tags=calibnet,supraseal

batch-calibnet: CURIO_TAGS+= supraseal
batch-calibnet: CURIO_TAGS+= calibnet
batch-calibnet: CGO_LDFLAGS_ALLOW='.*'
batch-calibnet: batchdep build
.PHONY: batch-calibnet
Expand All @@ -122,13 +127,13 @@ batch-calibnet:
@exit 1
endif

calibnet: GOFLAGS+=-tags=calibnet
calibnet: CURIO_TAGS+= calibnet
calibnet: build

debug: GOFLAGS+=-tags=debug
debug: CURIO_TAGS+= debug
debug: build

2k: GOFLAGS+=-tags=2k
2k: CURIO_TAGS+= 2k
2k: build

all: build
Expand Down
2 changes: 1 addition & 1 deletion build/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ var UpgradeSmokeHeight = abi.ChainEpoch(-1)

func init() {
SetAddressNetwork(address.Testnet)
BuildType = BuildDebug
BuildType = Build2k
}
2 changes: 2 additions & 0 deletions harmony/resources/getGPU_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

package resources

var GpuOverprovisionFactor = 1

func getGPUDevices() float64 {
return 1.0 // likely-true value intended for non-production use.
}

0 comments on commit a89ea54

Please sign in to comment.