From 24318836513b07bea824dd267969f37eb3ac3ed9 Mon Sep 17 00:00:00 2001 From: arrayah <61775571+arrayah@users.noreply.github.com> Date: Fri, 1 Oct 2021 12:42:12 +0300 Subject: [PATCH] fix: issue cosmos#10258 related to segmentaiton fault on mac m1 arm64 --- CHANGELOG.md | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c01a3a52aa8d..5c64645f9622 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -146,6 +146,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [\#10184](https://github.com/cosmos/cosmos-sdk/pull/10184) Fixed CLI tx commands to no longer explicitly require the chain-id flag as this value can come from a user config. * [\#10239](https://github.com/cosmos/cosmos-sdk/pull/10239) Fixed x/bank/044 migrateDenomMetadata. * (x/upgrade) [\#10189](https://github.com/cosmos/cosmos-sdk/issues/10189) Removed potential sources of non-determinism in upgrades +* [\#10258](https://github.com/cosmos/cosmos-sdk/issues/10258) Fixes issue related to segmentaiton fault on mac m1 arm64 ### State Machine Breaking diff --git a/Makefile b/Makefile index a6b9dc709704..fe10460813a3 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ BUILD_TARGETS := build install build: BUILD_ARGS=-o $(BUILDDIR)/ build-linux: - GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false $(MAKE) build + GOOS=linux GOARCH=$(if $(findstring aarch64,$(shell uname -m)),arm64,amd64) LEDGER_ENABLED=false $(MAKE) build $(BUILD_TARGETS): go.sum $(BUILDDIR)/ go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...