diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-01 10:59:54 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-01 10:59:54 +0100 |
| commit | edcd9e3c9ade5c8ccb7857c0add43b05e7a86c44 (patch) | |
| tree | d4a4e6d4c59aadb1af503fa114cb70faa3a47285 /sys/syz-extract/extract.go | |
| parent | a76bf83ffac5c0bed0a686f8ebc98c74bfb34a0c (diff) | |
sys/syz-extract: use clang if gcc is broken
On my Debian gcc -m32 is hopelessly broken.
Using clang fixes at least arch 386.
Arch arm is still broken b/c clang does not like
some of kernel arm inline assemly constraints.
Diffstat (limited to 'sys/syz-extract/extract.go')
| -rw-r--r-- | sys/syz-extract/extract.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/syz-extract/extract.go b/sys/syz-extract/extract.go index 64776bb96..70c203b8d 100644 --- a/sys/syz-extract/extract.go +++ b/sys/syz-extract/extract.go @@ -13,6 +13,7 @@ import ( "runtime" "sort" "strings" + "sync" "github.com/google/syzkaller/pkg/ast" "github.com/google/syzkaller/pkg/compiler" @@ -38,6 +39,9 @@ type Arch struct { files []*File err error done chan bool + // Used by OS implementations: + once sync.Once + cc string } type File struct { |
