Skip to content

Commit

Permalink
feat: Start using more than one thread while building
Browse files Browse the repository at this point in the history
  • Loading branch information
AiyionPrime committed Jun 30, 2024
1 parent c5d8410 commit 7bdf8ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ pipeline {
}
steps {
dir('gluon') {
sh "make -j1 V=s GLUON_TARGET=${params.GLUON_TARGET}"
def nproc_str = sh "nproc"
def nproc = nproc_str as Integer
def nproc_plus_one = nproc+1
sh "make -j${nproc_plus_one} GLUON_TARGET=${params.GLUON_TARGET}"
}
}
}
Expand Down

0 comments on commit 7bdf8ab

Please sign in to comment.