diff --git a/gogio/build_info.go b/gogio/build_info.go index 32d5076..3ef1ca7 100644 --- a/gogio/build_info.go +++ b/gogio/build_info.go @@ -97,6 +97,9 @@ func getLdFlags(appID string) string { ldflags = append(ldflags, strings.Split(extra, " ")...) } // Pass appID along, to be used for logging on platforms like Android. + ldflags = append(ldflags, fmt.Sprintf("-X gioui.org/app.ID=%s", appID)) + // Support earlier Gio versions that had a separate app id recorded. + // TODO: delete this in the future. ldflags = append(ldflags, fmt.Sprintf("-X gioui.org/app/internal/log.appID=%s", appID)) // Pass along all remaining arguments to the app. if appArgs := flag.Args()[1:]; len(appArgs) > 0 {