turn off debug symbols for i686

This commit is contained in:
Tom spot Callaway 2021-10-09 17:55:23 -04:00
parent f0a2189889
commit 1568f25500
1 changed files with 4 additions and 0 deletions

View File

@ -1159,6 +1159,10 @@ CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"'
%if %{official_build}
CHROMIUM_CORE_GN_DEFINES+=' is_official_build=true use_thin_lto=false is_cfi=false chrome_pgo_phase=0 use_debug_fission=true'
sed -i 's|OFFICIAL_BUILD|GOOGLE_CHROME_BUILD|g' tools/generate_shim_headers/generate_shim_headers.py
# Too much debuginfo for i686
%ifarch i686
sed -i 's|-g2|-g0|g' build/config/compiler/BUILD.gn
%endif
%endif
%if %{useapikey}
CHROMIUM_CORE_GN_DEFINES+=' google_api_key="%{api_key}"'