sys/syz-extract: favor clang on OpenBSD

Clang is the default compiler on amd64 which is the only supported
architecture by syzkaller right now.
This commit is contained in:
Anton Lindqvist 2020-03-04 16:44:35 +01:00 committed by Dmitry Vyukov
parent 9ef240be5f
commit 09d53fbb27

View File

@ -84,7 +84,7 @@ func (*openbsd) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]ui
params := &extractParams{
AddSource: "#include <sys/syscall.h>",
}
res, undeclared, err := extract(info, "gcc", args, params)
res, undeclared, err := extract(info, "cc", args, params)
for orig, compats := range compatNames {
for _, compat := range compats {
if undeclared[orig] && !undeclared[compat] {