delve/pkg/proc/macutil/rosetta_other.go
Alessandro Arzilli b9fcb03ff4
proc/native,proc/gdbserial: detect and complain about Rosetta (#2569)
Delve does not run under Rosetta. Detect this condition and point
confused users towards the solution.
2021-07-06 08:53:39 -07:00

10 lines
175 B
Go

// +build !darwin
package macutil
// CheckRosetta returns an error if the calling process is being translated
// by Apple Rosetta.
func CheckRosetta() error {
return nil
}