diff --git a/build.spec.inc b/build.spec.inc index 13cc33b..784878c 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -1,5 +1,5 @@ # TODO(kkleine): In clang we had this %ifarch s390 s390x aarch64 %ix86 ppc64le -%ifarch s390 s390x %ix86 +%if 0%{?rhel} == 8 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -113,7 +113,7 @@ cd llvm -DLLVM_PARALLEL_LINK_JOBS=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -%ifarch s390 %ix86 +%if 0%{?rhel} == 8 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif