Do/Should all packages "by default" support HOMEBREW_MAKE_JOBS? #6921
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
i remember posting a question about this in this discussion forum a while back. and from what i remember the env var |
Beta Was this translation helpful? Give feedback.
-
|
CMake is tricky as they don't only search PATH but also multiple other directories - https://cmake.org/cmake/help/v4.4/command/find_program.html. Particularly the CMAKE_PREFIX_PATH environment variable will take precedence over PATH, which includes HOMEBREW_PREFIX thus picking up One idea that was previously proposed but never completed was to use CMAKE_BUILD_PARALLEL_LEVEL. If anyone wants to explore this again, you can see following PR: There are other ways to reorder the search path but they are more complicated, e.g.
|
Beta Was this translation helpful? Give feedback.
Builds using CMake + Ninja will now pick up
HOMEBREW_MAKE_JOBS. Note that the change is only in brew main branch so most users may need to wait for next release, e.g. brew 6.0.7, or use developer mode version, e.g. 6.0.6-16-g8d94d5c