mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user