diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-02 19:07:22 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-02 19:07:22 +0200 |
| commit | d9a893a554d6077f5cab4aa8a81f24213443232e (patch) | |
| tree | ad7c6ccd2373fe3fd36183f7d9be114e8503b7ac /sys/sys.go | |
| parent | 5cbdd9f4445514cbacadc362c2891e40b7f36072 (diff) | |
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.
Diffstat (limited to 'sys/sys.go')
| -rw-r--r-- | sys/sys.go | 14 |
1 files changed, 7 insertions, 7 deletions
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. |
