Skip to content

Commit b65d37a

Browse files
shr-projectRaphael Kubo da Costa
authored and
Raphael Kubo da Costa
committed
chromium-gn: respect PARALLEL_MAKE when setting max_jobs_per_link
* the limit-number-of-LTO-jobs.patch sets the default to be 8, but we can set whatever user configured in PARALLEL_MAKE * with "-j 64" in PARALLEL_MAKE the do_compile task is 3.8 minutes faster (from 2701s to 2473s) Signed-off-by: Martin Jansa <[email protected]>
1 parent 3226365 commit b65d37a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ GN_ARGS += ' \
275275
v8_snapshot_toolchain="//build/toolchain/yocto:yocto_target" \
276276
'
277277

278+
# This parameter is added by limit-number-of-LTO-jobs.patch with the default value of 8,
279+
# but we can use whatever user configured in PARALLEL_MAKE
280+
GN_ARGS += 'max_jobs_per_link="${@oe.utils.parallel_make_argument(d, '%d')}"'
281+
278282
# ARM builds need special additional flags (see ${S}/build/config/arm.gni).
279283
# If we do not pass |arm_arch| and friends to GN, it will deduce a value that
280284
# will then conflict with TUNE_CCARGS and CC.

0 commit comments

Comments
 (0)