Skip to content

Commit

Permalink
Merge pull request #23 from jwillemsen/jwi-parallelmakewindows
Browse files Browse the repository at this point in the history
Implement cpu_cores for windows
  • Loading branch information
jwillemsen authored May 10, 2020
2 parents 42a4b55 + 94e2dda commit fb8df2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rakelib/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def self.is_osx
@@is_osx
end

@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : 1)
@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : (ENV['NUMBER_OF_PROCESSORS'] || 1).to_i)

def self.cpu_cores
@@cpu_cores
Expand Down Expand Up @@ -540,4 +540,4 @@ def self.load
include R2CORBA::AccessMethods

# load current config (if any)
R2CORBA::Config.load
R2CORBA::Config.load

0 comments on commit fb8df2e

Please sign in to comment.