lib/autobuild/subcommand.rb in autobuild-1.5.46 vs lib/autobuild/subcommand.rb in autobuild-1.5.47

- old
+ new

@@ -95,14 +95,20 @@ end @processor_count = info.inject(&:+) else @processor_count = processor_ids.size end - else + end + + # The format of the cpuinfo file is ... let's say not very standardized. + # If the cpuinfo detection fails, inform the user and set it to 1 + if !@processor_count # Hug... What kind of system is it ? STDERR.puts "INFO: cannot autodetect the number of CPUs on this sytem" @processor_count = 1 end + + @processor_count end end module Autobuild::Subprocess