Disable thin LTO on 32 bit trying to reduce memory usage when linking

This commit is contained in:
Mikhail Novosyolov 2021-06-04 01:23:46 +03:00
parent 1b73bbc6e2
commit df7efee6e6

View file

@ -477,11 +477,19 @@ export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-%{xcb_version}"
%define target_cpu %{nil}
%endif
# Linking on 32 bit does not have enough memory for LTO
%ifarch %{ix86}
%define use_thin_lto false
%else
%define use_thin_lto true
%endif
# v NO TABS IN HERE!
%define gn_config use_sysroot=false \
%{target_cpu} \
is_official_build=true \
symbol_level=%{symbol_level} \
use_thin_lto=%{use_thin_lto} \
strip_debug_info=false \
system_libdir="%{_lib}" \
icu_use_data_file=true \