diff --git a/Makefile b/Makefile index 89242c264..1728d7c3f 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,9 @@ deps: $(BUILD_DEPS) ## ldflags -s -w strips binary +curio: GOENVS ?= GOAMD64=v3 curio: $(BUILD_DEPS) - rm -f curio - GOAMD64=v3 CGO_LDFLAGS_ALLOW=$(CGO_LDFLAGS_ALLOW) $(GOCC) build $(GOFLAGS) -o curio -ldflags " -s -w \ + $(GOENVS) CGO_LDFLAGS_ALLOW=$(CGO_LDFLAGS_ALLOW) $(GOCC) build $(GOFLAGS) -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 diff --git a/documentation/en/installation.md b/documentation/en/installation.md index 9b2b31f20..4551024fb 100644 --- a/documentation/en/installation.md +++ b/documentation/en/installation.md @@ -159,6 +159,11 @@ git checkout export CGO_CFLAGS="-D__BLST_PORTABLE__" ``` + 3. Also for old processors, if Curio cannot start because the processor generation is too old, add the variable:\ + + ```shell + export GOENVS=GOAMD64=v1 + ``` 3. By default, a ‘multicore-sdr’ option is used in the proofs library. This feature is also used in FFI unless explicitly disabled. To disable building with the ‘multicore-sdr’ dependency, set `FFI_USE_MULTICORE_SDR` to `0`:\