Skip to content

Commit

Permalink
make sse4.1 the baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Aug 15, 2023
1 parent 5b707d3 commit d62d99f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion BUILDER
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ chrome_targets+=( app_shell ) > chrome_targets+=( app_shell chrome content_shell
"enable_precompiled_headers=false"
"media_use_ffmpeg=true"
"media_use_libvpx=true"
"enable_hls_sample_aes=true"
"enable_hls_demuxer=true"
"enable_ink=false"
"enable_discovery=true"
Expand Down
12 changes: 6 additions & 6 deletions make.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ COLLISION_IGNORE="${COLLISION_IGNORE} /lib/firmware /etc/chrome_dev.conf /etc/sk

#COMPILER OPTIMIZATION FLAGS
#Don't treat warnings as errors.
BOARD_COMPILER_FLAGS="-march=x86-64 -mavx -maes -O3"
BOARD_RUSTFLAGS="-Ctarget-cpu=x86-64 -Copt-level=3 -Ctarget-feature=+aes,+avx"
CFLAGS="${CFLAGS} -O3 -mavx -maes -Wno-error"
CXXFLAGS="${CXXFLAGS} -O3 -mavx -maes -Wno-error"
CFLAGS_MODULE="${CFLAGS_MODULE} -O3 -mavx -maes -Wno-error"
BOARD_COMPILER_FLAGS="-march=x86-64 -msse4.1 -O3"
BOARD_RUSTFLAGS="-Ctarget-cpu=x86-64 -Copt-level=3 -Ctarget-feature=+msse4.1"
CFLAGS="${CFLAGS} -O3 -msse4.1 -Wno-error"
CXXFLAGS="${CXXFLAGS} -O3 -msse4.1 -Wno-error"
CFLAGS_MODULE="${CFLAGS_MODULE} -O3 -msse4.1 -Wno-error"
LDFLAGS="${LDFLAGS} -Wl,-O3 -Wl,--lto-O3"
#CPU USE EXPAND FLAGS
CPU_FLAGS_X86="${CPU_FLAGS_X86} mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes avx"
CPU_FLAGS_X86="${CPU_FLAGS_X86} mmx mmxext sse sse2 sse3 ssse3 sse4_1"

#COMPILE CHROMIUM LOCALLY
CHROME_ORIGIN=LOCAL_SOURCE
Expand Down
14 changes: 7 additions & 7 deletions profiles/base/make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ CHROMEOS_KERNEL_SPLITCONFIG="chromeos-x86_64-reven"
# SSE2: https://crbug.com/350175
# SSE3: https://docs.google.com/document/d/1QUzL4MGNqX4wiLvukUwBf6FdCL35kCDoEJTm2wMkahw/preview
# Added SSE4, AVX, AES, and O3 compiler optimizations.
BOARD_COMPILER_FLAGS="-march=x86-64 -mavx -maes -O3"
BOARD_RUSTFLAGS="-Ctarget-cpu=x86-64 -Copt-level=3 -Ctarget-feature=+aes,+avx"
CFLAGS="${CFLAGS} -O3 -mavx -maes -Wno-error"
CXXFLAGS="${CXXFLAGS} -O3 -mavx -maes -Wno-error"
CFLAGS_MODULE="${CFLAGS_MODULE} -O3 -mavx -maes -Wno-error"
BOARD_COMPILER_FLAGS="-march=x86-64 -msse4.1 -O3"
BOARD_RUSTFLAGS="-Ctarget-cpu=x86-64 -Copt-level=3 -Ctarget-feature=+msse4.1"
CFLAGS="${CFLAGS} -O3 -msse4.1 -Wno-error"
CXXFLAGS="${CXXFLAGS} -O3 -msse4.1 -Wno-error"
CFLAGS_MODULE="${CFLAGS_MODULE} -O3 -msse4.1 -Wno-error"
LDFLAGS="${LDFLAGS} -Wl,-O3 -Wl,--lto-O3"
#CPU USE EXPAND FLAGS
CPU_FLAGS_X86="${CPU_FLAGS_X86} mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes avx"
CPU_FLAGS_X86="${CPU_FLAGS_X86} mmx mmxext sse sse2 sse3 ssse3 sse4_1"

# Include many firmwares as this is a "generic" board and might run on a
# wide variety of platforms with who knows what kind of hardware. -cros-pd disables USB-PD EC firmware updating.
Expand All @@ -42,7 +42,7 @@ USE="${USE} bluetooth cros_disks scanner ml_service power_management cups highli
USE="${USE} -debug -chrome_debug -chrome_debug_tests -chromeless_tests -cros-debug"

# CPU USE Flags.
USE="${USE} mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes avx"
USE="${USE} mmx mmxext sse sse2 sse3 ssse3 sse4_1"

# Enable non-free codecs and components.
USE="${USE} chrome_media vaapi x264 x265 hevc_codec widevine lto thinlto"
Expand Down

0 comments on commit d62d99f

Please sign in to comment.