Skip to content

jobserver doesn't always work #177

Closed
@BusyJay

Description

@BusyJay

When using cmake-rs to build a native library, I can see some errors on some platform:

make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

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 variable MAKE_GENERATOR=Ninja for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions