From 478f0a1e6b9b730fa01e329819e9f7f38ca04227 Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Thu, 14 Feb 2019 21:12:15 +0000 Subject: [PATCH] Decrease debug info verbosity for some target and prevent parallel linking --- clang.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index b7dc87d..730695d 100644 --- a/clang.spec +++ b/clang.spec @@ -233,12 +233,13 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py mkdir -p _build cd _build -%ifarch %{arm} +%ifarch s390 s390x %{arm} %ix86 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif %cmake .. -G Ninja \ + -DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DPYTHON_EXECUTABLE=%{__python3} \