Skip to content

Commit

Permalink
setup_build_environment: Set CMAKE_BUILD_PARALLEL_LEVEL environment v…
Browse files Browse the repository at this point in the history
…ariable.

`cmake` builds previously did not respect `HOMEBREW_MAKE_JOBS`.  This
change fixes that.
  • Loading branch information
David Hull committed Oct 13, 2024
1 parent 3291ad4 commit 3f7da97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/extend/ENV/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
self["CMAKE_FRAMEWORK_PATH"] = determine_cmake_frameworks_path
self["CMAKE_INCLUDE_PATH"] = determine_cmake_include_path
self["CMAKE_LIBRARY_PATH"] = determine_cmake_library_path
self['CMAKE_BUILD_PARALLEL_LEVEL'] = determine_make_jobs.to_s
self["ACLOCAL_PATH"] = determine_aclocal_path
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { |d| d.name == "libtool" }
self["HOMEBREW_ISYSTEM_PATHS"] = determine_isystem_paths
Expand Down

0 comments on commit 3f7da97

Please sign in to comment.