Notgnoshi / generative

Generative art. A suite of composable tools to generate, transform and visualize WKT geometries
MIT License
25 stars 3 forks source link

Fix build on new distro #155

Closed Notgnoshi closed 1 year ago

Notgnoshi commented 1 year ago

There's still one problem left to figure out. The CMake build (when invoked by Cargo) is no longer parallel

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

I've run into jobserver problems before, but I suspect that I have too new of a cmake/make combination

nots@pandemonium ~/src/generative (ag/fix-build =) $ cmake --version
cmake version 3.26.3
nots@pandemonium ~/src/generative (ag/fix-build =) $ make --version
GNU Make 4.4

Could possibly look into forking cc-rs and cmake-rs to use https://github.com/cargo-bins/jobslot over jobserver-rs?

Notgnoshi commented 1 year ago

The build parallelism problem can be worked around with

CMAKE_GENERATOR=Ninja cargo build

But I expect that this will, on an N-core CPU, run N C++ build jobs and N Rust build jobs at the same time (e.g., it doesn't share an equivalent to the Make jobserver)