diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9ede3cac9..4e43f712f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,7 +13,6 @@ builds: - amd64 - arm64 env: - - CGO_CFLAGS='-O2 -D__BLST_PORTABLE__' - CGO_ENABLED=1 - CC_darwin_amd64=o64-clang - CXX_darwin_amd64=o64-clang+ @@ -31,6 +30,9 @@ builds: - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}' flags: - -mod=readonly + gcflags: + - -O2 + - -D__BLST_PORTABLE__ ldflags: - -X github.com/onflow/flow-cli/build.commit={{ .Env.COMMIT }} -X github.com/onflow/flow-cli/build.semver={{ .Env.VERSION }} -X github.com/onflow/flow-cli/internal/command.mixpanelToken={{ .Env.MIXPANEL_PROJECT_TOKEN }} -X github.com/onflow/flow-cli/internal/accounts.accountToken={{ .Env.LILICO_TOKEN }}