Skip to content

Commit

Permalink
ENV.rb: Always return integers from make_jobs
Browse files Browse the repository at this point in the history
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes Homebrew#12033.
  • Loading branch information
Sharpie committed May 3, 2012
1 parent 0c24cd2 commit bff8c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ENV.rb
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def compiler
def make_jobs
# '-j' requires a positive integral argument
if self['HOMEBREW_MAKE_JOBS'].to_i > 0
self['HOMEBREW_MAKE_JOBS']
self['HOMEBREW_MAKE_JOBS'].to_i
else
Hardware.processor_count
end
Expand Down

0 comments on commit bff8c8e

Please sign in to comment.