Fix '-j#' regex addition by excluding lines w/ cmake (#6555)

* Fix '-j#' regex addition by excluding lines w/ cmake

* bump version
This commit is contained in:
Satadru Pramanik
2022-01-05 10:32:08 -05:00
committed by GitHub
parent 1911b82b46
commit 58417c28de
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Defines common constants used in different parts of crew
CREW_VERSION = '1.20.5'
CREW_VERSION = '1.20.6'
ARCH_ACTUAL = `uname -m`.chomp
# This helps with virtualized builds on aarch64 machines

View File

@@ -134,7 +134,7 @@ class Package
cmd_args = args.join(' ')
# Add -j arg to build commands.
cmd_args.sub!(/\b(?<=make)(?=\b)/, " -j#{CREW_NPROC}") unless cmd_args =~ /-j\s*\d+/
cmd_args.sub!(/\b(?<=make)(?=\b)/, " -j#{CREW_NPROC}") unless cmd_args =~ /-j\s*\d+|cmake/
begin
Kernel.system(env, cmd_args, **opt_args)