Skip to content

Commit

Permalink
cmd/internal/objabi: enable frame-pointer for iOS arm64
Browse files Browse the repository at this point in the history
This improves stack unwinding of Go code running on iOS arm64.

Change-Id: I0494f750c15dcb895f9d4a072352f050d731df17
GitHub-Last-Rev: 435a2a1
GitHub-Pull-Request: #37403
Reviewed-on: https://go-review.googlesource.com/c/go/+/220588
Run-TryBot: Elias Naur <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Cherry Zhang <[email protected]>
  • Loading branch information
Gawen Arab authored and eliasnaur committed Jun 10, 2020
1 parent e92be18 commit ec177e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/objabi/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func init() {
}

func Framepointer_enabled(goos, goarch string) bool {
return framepointer_enabled != 0 && (goarch == "amd64" || goarch == "arm64" && goos == "linux")
return framepointer_enabled != 0 && (goarch == "amd64" || goarch == "arm64" && (goos == "linux" || goos == "darwin"))
}

func addexp(s string) {
Expand Down

0 comments on commit ec177e4

Please sign in to comment.