aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/bisect_flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/bisect_flag.go')
-rw-r--r--compiler_wrapper/bisect_flag.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler_wrapper/bisect_flag.go b/compiler_wrapper/bisect_flag.go
index 62bcbd31..6271e23f 100644
--- a/compiler_wrapper/bisect_flag.go
+++ b/compiler_wrapper/bisect_flag.go
@@ -5,7 +5,7 @@
package main
import (
- "os"
+ "errors"
"path/filepath"
)
@@ -41,9 +41,9 @@ func calcBisectCommand(env env, cfg *config, bisectStage string, compilerCmd *co
bisectDir, _ := env.getenv("BISECT_DIR")
if bisectDir == "" {
if cfg.isAndroidWrapper {
- homeDir, err := os.UserHomeDir()
- if err != nil {
- return nil, err
+ homeDir, ok := env.getenv("HOME")
+ if !ok {
+ return nil, errors.New("$HOME is not set")
}
bisectDir = filepath.Join(homeDir, "ANDROID_BISECT")
} else {