-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protobuf-cpp: Cannot compile when there are alot of proto files in separate directories #4372
Comments
When I debugged Xmake, I saw that 10/44 proto files managed to run the function inside of this call: https://github.com/xmake-io/xmake/blob/master/xmake/rules/protobuf/proto.lua#L195 |
xmake tries to resolve the dependencies between proto files and then generates a dependency graph, compiling as much as possible in parallel. However, xmake currently parses the dependencies from the source code itself, and if it does not generate them correctly, the parallel compilation may fail. xmake/xmake/rules/protobuf/proto.lua Line 186 in 8eefa03
So you can try debugging this implementation of dependency resolution. |
Fixed the issue by doing the following:
|
The above changes only fixed linux, not windows |
Xmake Version
2.8.5
Operating System Version and Architecture
Windows 10 22H2
Describe Bug
Xmake only compiles 3/5 directories containing proto files using protobuf-cpp.
Expected Behavior
All the proto files in the directories should get compiled
Project Configuration
The repository which I'm working on is https://github.com/cartographer-project/cartographer
Additional Information and Error Logs
Error Log: https://pastebin.com/6DWxE6n7
The text was updated successfully, but these errors were encountered: