commit:     5995873083cb641b7992d8f82eb1ced0c1e7c187
Author:     jinqiang zhang <peeweep <AT> 0x0 <DOT> ee>
AuthorDate: Thu Mar 30 12:57:12 2023 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Mar 31 05:37:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59958730

www-client/firefox: enable jit on riscv

Although JIT is still experimental, but works on RISC-V 64,
so let's enable it.
Note, we can drop this line once upstream enable JIT by default.

Signed-off-by: jinqiang zhang <peeweep <AT> 0x0.ee>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 www-client/firefox/firefox-111.0.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www-client/firefox/firefox-111.0.ebuild 
b/www-client/firefox/firefox-111.0.ebuild
index 41c9dc6e3521..9a9e8b44e058 100644
--- a/www-client/firefox/firefox-111.0.ebuild
+++ b/www-client/firefox/firefox-111.0.ebuild
@@ -797,6 +797,10 @@ src_configure() {
                mozconfig_add_options_ac '' --enable-sandbox
        fi
 
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
        if [[ -s "${S}/api-google.key" ]] ; then
                local key_origin="Gentoo default"
                if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then

Reply via email to