Skip to content

Commit

Permalink
Enable Clang plugin for x86_64 and aarch64 configurations in mozconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Dec 22, 2024
1 parent dd87882 commit 076586d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configs/linux/mozconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ else
fi

if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --enable-clang-plugin
ac_add_options --target=x86_64-pc-linux
ac_add_options --enable-eme=widevine

Expand All @@ -24,6 +25,7 @@ if test "$SURFER_COMPAT" = "x86_64"; then
export LDFLAGS="$LDFLAGS -Wl,-O3 -Wl,-mllvm,-fp-contract=fast -march=x86-64"
export RUSTFLAGS="$RUSTFLAGS -C target-cpu=x86-64 -C codegen-units=1 -Clink-args=--icf=safe"
elif test "$SURFER_COMPAT" = "aarch64"; then
ac_add_options --enable-clang-plugin
ac_add_options --target=aarch64-linux-gnu

ac_add_options --enable-optimize="-O3"
Expand Down Expand Up @@ -61,7 +63,6 @@ ac_add_options --enable-alsa
ac_add_options --enable-pulseaudio

if test "$ZEN_RELEASE"; then
ac_add_options --enable-clang-plugin

# Disable DMD and ELF hacks, enable linker lld
ac_add_options --disable-dmd
Expand Down

0 comments on commit 076586d

Please sign in to comment.