-
Notifications
You must be signed in to change notification settings - Fork 127
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
jobserver doesn't always work #177
Comments
I wonder if this is related to #172? I expect #172 is caused by the caveat mentioned in https://docs.rs/jobserver/latest/jobserver/struct.Client.html#method.from_env about |
I have a PR in #229 that fixes this issue on OSX, at least in the cases that I ran into, by disabling jobserver support on that platform. Based on my investigation, jobserver support is broken on OSX when using rust-lang/jobserver-rs#47 does seem like a potential alternative long-term fix, but based on rust-lang/cargo#13483 (comment), I don't think it's possible anytime soon. I've also created an issue in CMake's issue tracker: https://gitlab.kitware.com/cmake/cmake/-/issues/26560 |
When using cmake-rs to build a native library, I can see some errors on some platform:
The problem may be related to rust-lang/jobserver-rs#47.
This is not an issue with cmake-rs, but cmake-rs can let user to disable jobserver explicitly to get around the problem.
And tikv/grpc-rs# also provides a workaround by setting environment variable
CMAKE_BUILD_PARALLEL_LEVEL
. And using generator other than make can also get around the problem (setting environment variableMAKE_GENERATOR=Ninja
for example).The text was updated successfully, but these errors were encountered: