Skip to content

Commit

Permalink
cmd/fyne: remove debug and DWARF in Android's release mode (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejMagat305 committed May 14, 2022
1 parent c92f334 commit 61b61b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fyne/internal/mobile/build_androidapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ func goAndroidBuild(pkg *packages.Package, bundleID string, androidArchs []strin
if err := mkdir(filepath.Dir(libAbsPath)); err != nil {
return nil, err
}
// If building release and no ldflags are set then remove the useless debug and DWARF build options
if release && buildLdflags == "" {
buildLdflags = "-s -w"
}
err = goBuild(
pkg.PkgPath,
androidEnv[arch],
Expand Down

0 comments on commit 61b61b4

Please sign in to comment.