Tune dwz on aarch64
Reduce the dwz limits on aarch64 in order to reduce memory footprint and avoid OOMs.
This commit is contained in:
parent
94faead4aa
commit
53b54148fb
@ -79,9 +79,12 @@ mv %{cmake_srcdir} cmake
|
|||||||
%global _lto_cflags %{nil}
|
%global _lto_cflags %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %aarch64
|
# On aarch64, dwz can take very long to process all the files. It either fails
|
||||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
# reaching a timeout or consumes too much RAM. Restrict its resources in
|
||||||
%endif
|
# order to stop dwz early. We prefer to miss the DWARF optimization than not
|
||||||
|
# not being able to build this package on aarch64.
|
||||||
|
%global _dwz_low_mem_die_limit_aarch64 1
|
||||||
|
%global _dwz_max_die_limit_aarch64 1000000
|
||||||
|
|
||||||
%cmake -GNinja \
|
%cmake -GNinja \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
Loading…
Reference in New Issue
Block a user