Skip to content

Commit

Permalink
fix: MacOS strip debug info for proper runs (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups authored Oct 30, 2024
1 parent 6717d03 commit a8a5b2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion local-interchain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ endif

# if env IGNORE_STATIC_LINK=true, then only set the main version in ldflags
# required so releasing the binary does not set the main directory incorrectly
ldflags = -X main.MakeFileInstallDirectory=$(CWD) -X main.Version=$(VERSION)
# -
# Stripping the debug info with -s -w fixes this so the binary
# is properly signed (MacOS sequoia + XCode 16 causes the binary to instantly die)
# ref: https://github.com/rollchains/spawn/issues/248
ldflags = -X main.MakeFileInstallDirectory=$(CWD) -X main.Version=$(VERSION) -s -w
ifeq ($(IGNORE_STATIC_LINK),true)
ldflags = -X main.Version=$(VERSION)
endif
Expand Down

0 comments on commit a8a5b2b

Please sign in to comment.