Compiling chromium for CrOS with AVX.

52 views
Skip to first unread message

Alex Frick

unread,
Jan 10, 2022, 2:32:45 AM1/10/22
to Chromium OS Development
I build chromium for linux, and build it with AVX by modifying //chromium/src/build/config/compiler/BUILD.gn to have -mavx -maes instead of -msse3.
I also build ChromiumOS and build chromium for it too to enable codecs, by using cro_sdk with the --chrome-root option. My current overlay has some extra packages and USE flags, and the make.defaults has packages set to build with avx by setting
BOARD_COMPILER_FLAGS="-march=x86-64 -mavx -maes"
BOARD_RUSTFLAGS="-Ctarget-cpu=x86-64 -Ctarget-feature=+avx"
This has worked fine, up to the point in ./buildpackages --nowithdebug --nowithautotest, when it actually starts building chromium. It builds but fails on the very last step of linking the chrome executable, with no seemingly useful info in the emerge log.
Could it be that I don't need to set mavx and maes in the chromium tree, and that setting it in the make.defaults will propogate avx and modifying the BUILD.gn is not needed.
Or is this another issue.
Currently building CrOS 99.0.4814.0 

Reply all
Reply to author
Forward
0 new messages