mirror of https://github.com/YosysHQ/yosys.git
Fix protobuf backend build dependencies
backends/protobuf/protobuf.cc depends on the source and header files generated by protoc, but this dependency wasn't explicitly declared. Add a rule to the Makefile to fix intermittent build failures when the protobuf header/source file isn't built before protobuf.cc.
This commit is contained in:
parent
c88eaea6e0
commit
c25122e339
|
@ -3,6 +3,8 @@ ifeq ($(ENABLE_PROTOBUF),1)
|
|||
backends/protobuf/yosys.pb.cc backends/protobuf/yosys.pb.h: misc/yosys.proto
|
||||
$(Q) cd misc && protoc --cpp_out "../backends/protobuf" yosys.proto
|
||||
|
||||
backends/protobuf/protobuf.cc: backends/protobuf/yosys.pb.h
|
||||
|
||||
OBJS += backends/protobuf/protobuf.o backends/protobuf/yosys.pb.o
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue