aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/targets/targets.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 98a2fa9d0..24fcd5392 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -302,8 +302,12 @@ func init() {
initTarget(target, OS, arch)
}
}
+ goos := runtime.GOOS
+ if goos == "android" {
+ goos = "linux"
+ }
for _, target := range List["test"] {
- target.CCompiler = List[runtime.GOOS][runtime.GOARCH].CCompiler
+ target.CCompiler = List[goos][runtime.GOARCH].CCompiler
}
}