mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Merge pull request #990 from joankaradimov/parallel-build
Build the webkit server executable in parallel
This commit is contained in:
commit
0fa9b513fa
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
require 'etc'
|
||||
require "fileutils"
|
||||
require "rbconfig"
|
||||
require "shellwords"
|
||||
|
@ -90,7 +91,8 @@ module CapybaraWebkitBuilder
|
|||
end
|
||||
|
||||
def make(target = "")
|
||||
env_hide("CDPATH") { sh("#{make_bin} #{target}") }
|
||||
job_count = Etc.respond_to?(:nprocessors) ? Etc.nprocessors : 1
|
||||
env_hide('CDPATH') { sh("#{make_bin} #{target} --jobs=#{job_count}") }
|
||||
end
|
||||
|
||||
def env_hide(name)
|
||||
|
|
Loading…
Reference in a new issue