Skip to content

Commit

Permalink
chromium: Always use gold linker
Browse files Browse the repository at this point in the history
bfd linker takes long time ( ~8 mins ) on a xeon server to link
and needs 14.7GB RAM to link chrome

Lets use gold and take advantage of multithreaded linking

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Jul 8, 2017
1 parent 5aef1f2 commit 62e3238
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes-browser/chromium/chromium-browser.inc
Expand Up @@ -198,6 +198,8 @@ python add_ozone_wayland_patches() {
d.appendVar('SRC_URI', ' ' + d.getVar('OZONE_WAYLAND_EXTRA_PATCHES', False))
}

USEGOLD ?= "-Dlinux_use_gold_flags=1"

EXTRA_OEGYP = " \
-Dangle_use_commit_id=0 \
-Dclang=0 \
Expand All @@ -206,11 +208,11 @@ EXTRA_OEGYP = " \
-Dv8_use_external_startup_data=0 \
-Dlinux_use_bundled_gold=0 \
-Dlinux_use_bundled_binutils=0 \
${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-Dlinux_use_gold_flags=1', '', d)} \
-I ${WORKDIR}/oe-defaults.gypi \
-I ${WORKDIR}/include.gypi \
${@bb.utils.contains('PACKAGECONFIG', 'component-build', '-I ${WORKDIR}/component-build.gypi', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'proprietary-codecs', '-Dproprietary_codecs=1 -Dffmpeg_branding=Chrome', '', d)} \
${USEGOLD} \
-f ninja \
"

Expand Down

0 comments on commit 62e3238

Please sign in to comment.