From 93de27f5aa761044fb1c285730cd178501dc94ac Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mar 10 2018 01:08:28 +0000 Subject: Try harder to save memory, add ix86 to 'save memory' list As per the other llvm packages, use ld flags that prioritize memory use over performance for memory-impaired arches. Also add ix86 to the list of memory-impaired arches, as my Rawhide build attempt died on i686 due to lack of memory: https://koji.fedoraproject.org/koji/taskinfo?taskID=25551155 --- diff --git a/llvm5.0.spec b/llvm5.0.spec index b361141..f01306d 100644 --- a/llvm5.0.spec +++ b/llvm5.0.spec @@ -118,7 +118,9 @@ for f in `grep -Rl 'XFAIL.\+arm' test/ExecutionEngine `; do rm $f; done mkdir -p _build cd _build -%ifarch s390 %{arm} +%ifarch s390 %{arm} %{ix86} +# use linker flags that prioritize efficiency over speed (try and save memory) +%global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif