From 671f31019d4018554d672c78ff08172d2a3ad71e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 2 Apr 2025 05:12:30 -0700 Subject: Makefile: simplify Go generation Make fidlgen non special and run go generate for all packages. This will avoid stale go:generate commands, and missed packages (like we had for pkg/ifuzz/{x86,arm64} for years). --- sys/fuchsia/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/fuchsia/init.go') diff --git a/sys/fuchsia/init.go b/sys/fuchsia/init.go index 2fbbd4bdf..c3ca8ca9b 100644 --- a/sys/fuchsia/init.go +++ b/sys/fuchsia/init.go @@ -1,7 +1,8 @@ // Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -//go:generate go run fidlgen/main.go +//go:generate bash -c "TARGETARCH=amd64 go run fidlgen/main.go" +//go:generate bash -c "TARGETARCH=arm64 go run fidlgen/main.go" package fuchsia -- cgit mrf-deployment