Makefile: format C sources before generating Go

If executor common headers are unformatted then go generate pkg/csource
will embed unformatted headers. Then format_cpp will re-format
only executor headers, but not embed versions. As the result
pkg/csource will end up with wrong embed headers.

Format C sources before generating Go to fix this.
This commit is contained in:
Dmitry Vyukov 2018-06-30 17:26:22 +02:00
parent 4cd4cbd625
commit bdc18a387e

View File

@ -136,7 +136,7 @@ bin/syz-extract:
generate: generate_go generate_sys
$(MAKE) format
generate_go: bin/syz-sysgen
generate_go: bin/syz-sysgen format_cpp
$(GO) generate ./pkg/csource ./executor ./pkg/ifuzz ./pkg/build
generate_sys: bin/syz-sysgen