Skip to content

Commit

Permalink
cmd/gomobile: fix openal init test
Browse files Browse the repository at this point in the history
Updates golang/go#19046

Change-Id: I0fc8fedc179d24ec9691528cab98857f3f9a4291
Reviewed-on: https://go-review.googlesource.com/37327
Reviewed-by: Jaana Burcu Dogan <[email protected]>
  • Loading branch information
Elias Naur committed Mar 3, 2017
1 parent 2057cae commit 57e7952
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/gomobile/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ func installOpenAL(gomobilepath string) error {
if ndkRoot == "" || initOpenAL == "" {
return nil
}
sdkRoot := os.Getenv("ANDROID_HOME")
if sdkRoot == "" {
return nil
}
var cmake string
if buildN {
cmake = "cmake"
} else {
sdkRoot := os.Getenv("ANDROID_HOME")
if sdkRoot == "" {
return nil
}
var err error
cmake, err = exec.LookPath("cmake")
if err != nil {
Expand Down

0 comments on commit 57e7952

Please sign in to comment.