Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e1a97f3 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Browser: Disable CFI for x86 builds

parent 17c0bff5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -31,6 +31,14 @@ build() {
    apks="TrichromeChrome32 TrichromeLibrary32 TrichromeWebView32 TrichromeChrome6432 TrichromeLibrary6432 TrichromeWebView6432"
    build_args="$(cat "${root_dir}"/build/browser.gn_args) target_cpu=\"${1}\" "

    if [ $1 '==' "x86" ] || [ $1 '==' "x64" ]; then
        build_args+=' is_cfi=false'
        build_args+=' use_cfi_cast=false'
    else
        build_args+=' is_cfi=true'
        build_args+=' use_cfi_cast=true'
    fi

    code=$chromium_code
    if [ $1 '==' "arm" ] || [ $1 '==' "arm64" ]; then
        code+=50
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ enable_vr=false
exclude_unwind_tables=false
ffmpeg_branding="Chrome"
icu_use_data_file=true
is_cfi=true
#is_cfi=true
is_component_build=false
is_debug=false
is_official_build=true
@@ -37,7 +37,7 @@ symbol_level=1
#system_webview_package_name="org.bromite.webview"
target_os="android"
treat_warnings_as_errors=true
use_cfi_cast=true
#use_cfi_cast=true
use_debug_fission=true
use_errorprone_java_compiler=false
use_gnome_keyring=false