syzkaller/sys/syz-extract
Alexander Potapenko d7f9fffab3 targets: syz-extract: add Clang support for Linux builds
Allow targets.go use Clang instead of the default Linux compiler by
setting the SYZ_CLANG=1 env var. Doing so changes the compiler to
"clang" and the linker to "ld.ldd", assuming they are in $PATH, and adds
the --target and -ferror-limit CFLAGS.

Target also exports KernelCompiler and KernelLinker fields now, which allows
overriding the compiler and linker in the kernel make invocation.

Signed-off-by: Alexander Potapenko <glider@google.com>
2020-05-15 14:08:01 +02:00
..
akaros.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
extract.go sys/syz-extract: don't warn about unsupported consts for 1 arch 2020-05-11 16:54:44 +02:00
fetch.go sys/syz-extract: add another compiler message about missing const 2020-05-11 16:54:44 +02:00
freebsd.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
fuchsia.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
linux.go targets: syz-extract: add Clang support for Linux builds 2020-05-15 14:08:01 +02:00
netbsd.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
openbsd.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
trusty.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00
windows.go sys/syz-extract: run mrproper for all linux arches 2020-05-09 16:08:22 +02:00