aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-10-06 10:05:15 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-10-06 08:29:04 +0000
commitc0478890a2483e774aa712cce11dfa0799f92aa5 (patch)
tree73f184d20a98d653d68ffea4162632d35b98c2bb /Makefile
parent49379ee008e5f2af6e551c2e23fcd6b1ebb4d5c2 (diff)
kfuzztest: fix build error for non-Linux targets
Fix the following error by only building it for Linux: package github.com/google/syzkaller/pkg/kfuzztest-manager imports github.com/google/syzkaller/pkg/kfuzztest-executor: build constraints exclude all Go files in /syzkaller/gop ath/src/github.com/google/syzkaller/pkg/kfuzztest-executor
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 91eb05a13..1e8948240 100644
--- a/Makefile
+++ b/Makefile
@@ -217,8 +217,13 @@ syz-build:
bisect: descriptions
GOOS=$(HOSTOS) GOARCH=$(HOSTARCH) $(HOSTGO) build $(GOHOSTFLAGS) -o ./bin/syz-bisect github.com/google/syzkaller/tools/syz-bisect
+ifeq ($(HOSTOS), linux)
kfuzztest: descriptions
GOOS=$(HOSTOS) GOARCH=$(HOSTARCH) $(HOSTGO) build $(GOHOSTFLAGS) -o ./bin/syz-kfuzztest github.com/google/syzkaller/syz-kfuzztest
+else
+kfuzztest:
+ @echo "Skipping kfuzztest build (it's Linux-only)"
+endif
verifier: descriptions
# TODO: switch syz-verifier to use syz-executor.