cmd/gomobile: fix openal init test

Updates golang/go#19046

Change-Id: I0fc8fedc179d24ec9691528cab98857f3f9a4291
Reviewed-on: https://go-review.googlesource.com/37327
Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
This commit is contained in:
Elias Naur 2017-02-21 22:37:37 +01:00
parent 2057caeb27
commit 57e7952fd5
1 changed files with 4 additions and 4 deletions

View File

@ -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 {