aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets/targets.go
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2024-03-29 17:05:42 -0700
committerAleksandr Nogikh <nogikh@google.com>2024-04-05 14:23:21 +0000
commit9bc1b5fd8bd8291a75216345cd0fb4fe15c98522 (patch)
treeb20b94b0366cea21dd50ef4e7e9bbbe1808841cf /sys/targets/targets.go
parent18ea8213dd4178e6671728ec06cbed72cc06b41d (diff)
sys/targets: avoid building TestOS on OpenBSD
It's missing syscall function yet TestOS requires it.
Diffstat (limited to 'sys/targets/targets.go')
-rw-r--r--sys/targets/targets.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 840c1febf..9a5c82948 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -693,6 +693,9 @@ func init() {
target.CFlags[i] = strings.Replace(target.CFlags[i], "-m32", "-m31", -1)
}
}
+ if runtime.GOOS == OpenBSD {
+ target.BrokenCompiler = "can't build TestOS on OpenBSD due to missing syscall function."
+ }
target.BuildOS = goos
}
}