From d9a893a554d6077f5cab4aa8a81f24213443232e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 2 Aug 2018 19:07:22 +0200 Subject: Makefile: don't compile all targets into target binaries Currently target binaries contain support for all OS/arch combinations. However, obviously a fuchsia target binary won't test windows. For target binaries we need support only for a single target (with the exception of 386/arm target in amd64/arm64 binaries). So compile in only _the_ target into target binaries. This reduces akaros/amd64 fuzzer binary from 33 to 7 MB and execprog from 28 to 2 MB. --- sys/sys.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/sys.go') diff --git a/sys/sys.go b/sys/sys.go index e67093e16..51c04b444 100644 --- a/sys/sys.go +++ b/sys/sys.go @@ -5,13 +5,13 @@ package sys import ( // Import all targets, so that users only need to import sys. - _ "github.com/google/syzkaller/sys/akaros" - _ "github.com/google/syzkaller/sys/freebsd" - _ "github.com/google/syzkaller/sys/fuchsia" - _ "github.com/google/syzkaller/sys/linux" - _ "github.com/google/syzkaller/sys/netbsd" - _ "github.com/google/syzkaller/sys/test" - _ "github.com/google/syzkaller/sys/windows" + _ "github.com/google/syzkaller/sys/akaros/gen" + _ "github.com/google/syzkaller/sys/freebsd/gen" + _ "github.com/google/syzkaller/sys/fuchsia/gen" + _ "github.com/google/syzkaller/sys/linux/gen" + _ "github.com/google/syzkaller/sys/netbsd/gen" + _ "github.com/google/syzkaller/sys/test/gen" + _ "github.com/google/syzkaller/sys/windows/gen" ) // Emitted by Makefile. -- cgit mrf-deployment